Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 644cfae0 authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

coresight: use %pa for printing physical address



We should be using %pa when printing physical addresses. There is an
instance in the coresight code where we're casting a physical address to
a (void *) and printing that with %p. That doesn't work with LPAE since
virtual addresses are only 32-bits and physical addresses are
64-bits. Fix this.

This fixes the following warning:

    In file included from kernel/drivers/coresight/coresight-tmc.c:17:0:
    kernel/drivers/coresight/coresight-tmc.c: In function \
        ‘tmc_etr_sg_compute_read’:
    kernel/drivers/coresight/coresight-tmc.c:1473:21: warning: cast to \
         pointer from integer of different size [-Wint-to-pointer-cast]
    error, forbidden warning: coresight-tmc.c:1473

Change-Id: I749a7650534c8cfcba45ffd49caf96d30494009b
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent ca803c1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment