diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-05-15 00:33:57 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-05-17 18:12:40 +0300 |
commit | c9efa49290ce3aa8692054b5110f8123819d4874 (patch) | |
tree | e05eb68d283c0448663ea8e77efb97c32b92c5ba /drivers/ata/sata_nv.c | |
parent | dbc557fa5ff866f46c7e29c790f3a9b64e49ef3f (diff) | |
download | linux-c9efa49290ce3aa8692054b5110f8123819d4874.tar.xz |
sata: fsl: fix DPRINTK format string
Printing an __iomem pointer as %x produces a warning:
drivers/ata/sata_fsl.c: In function 'fsl_sata_set_irq_coalescing':
drivers/ata/sata_fsl.c:316:17: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'void *' [-Werror=format=]
316 | DPRINTK("ICC register status: (hcr base: 0x%x) = 0x%x\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
317 | hcr_base, ioread32(hcr_base + ICC));
| ~~~~~~~~
| |
| void *
It's not clear why that pointer should be printed here, but if we do,
then using %p is the way to avoid the warnings.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210514213402.691436-1-arnd@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ata/sata_nv.c')
0 files changed, 0 insertions, 0 deletions