aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUmang Jain <[email protected]>2023-12-07 14:08:37 +0530
committerGreg Kroah-Hartman <[email protected]>2023-12-09 15:06:35 +0100
commit6cb3158903c6402d7be26677becde5dc1862a48b (patch)
tree7d968e8baed22e74819a1464da7b7d626d2d8a55
parent93596ac342c501db98dbd7b94bc60c12daad7569 (diff)
staging: vc04_services: vchiq_dev: Use %p to log pointer address
Solves the following Smatch warnings: vchiq_release() warn: argument 7 to %lx specifier is cast from pointer %p will print the hashed pointer to dynamic debug. In order to print the unmodified pointer address, one can use the `no_hash_pointers` via kernel parameters. Signed-off-by: Umang Jain <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c
index 68c8897c504c..4d9deeeb637a 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c
@@ -1201,7 +1201,7 @@ static int vchiq_release(struct inode *inode, struct file *file)
int ret = 0;
int i;
- dev_dbg(state->dev, "arm: instance=%lx\n", (unsigned long)instance);
+ dev_dbg(state->dev, "arm: instance=%p\n", instance);
if (!state) {
ret = -EPERM;