Skip to content

Commit bc0dcbc

Browse files
SruChallamstsirkin
authored andcommitted
vdpa/octeon_ep: Fix format specifier for pointers in debug messages
Updates the debug messages in octep_vdpa_hw.c to use the %p format specifier for pointers instead of casting them to u64. Fixes smatch warning: octep_hw_caps_read() warn: argument 3 to %016llx specifier is cast from pointer Fixes: 8b6c724 ("virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Srujana Challa <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent efcd71a commit bc0dcbc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/vdpa/octeon_ep/octep_vdpa_hw.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -475,11 +475,11 @@ int octep_hw_caps_read(struct octep_hw *oct_hw, struct pci_dev *pdev)
475475
dev_err(dev, "Incomplete PCI capabilities");
476476
return -EIO;
477477
}
478-
dev_info(dev, "common cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->common_cfg);
479-
dev_info(dev, "device cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->dev_cfg);
480-
dev_info(dev, "isr cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->isr);
481-
dev_info(dev, "notify base: 0x%016llx, notify off multiplier: %u\n",
482-
(u64)(uintptr_t)oct_hw->notify_base, oct_hw->notify_off_multiplier);
478+
dev_info(dev, "common cfg mapped at: %p\n", oct_hw->common_cfg);
479+
dev_info(dev, "device cfg mapped at: %p\n", oct_hw->dev_cfg);
480+
dev_info(dev, "isr cfg mapped at: %p\n", oct_hw->isr);
481+
dev_info(dev, "notify base: %p, notify off multiplier: %u\n",
482+
oct_hw->notify_base, oct_hw->notify_off_multiplier);
483483

484484
oct_hw->config_size = octep_get_config_size(oct_hw);
485485
oct_hw->features = octep_hw_get_dev_features(oct_hw);
@@ -511,7 +511,7 @@ int octep_hw_caps_read(struct octep_hw *oct_hw, struct pci_dev *pdev)
511511
}
512512
mbox = octep_get_mbox(oct_hw);
513513
octep_mbox_init(mbox);
514-
dev_info(dev, "mbox mapped at: 0x%016llx\n", (u64)(uintptr_t)mbox);
514+
dev_info(dev, "mbox mapped at: %p\n", mbox);
515515

516516
return 0;
517517
}

0 commit comments

Comments
 (0)