summaryrefslogtreecommitdiff
path: root/arch/m68k/include/uapi
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-09-25 17:53:20 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2023-10-06 10:03:04 +0200
commitc7db3832ff19a9a1116c1b3d435c9db165a2f2f8 (patch)
tree3c54d7f0ee23c4eadf833bde4a5135352569ab54 /arch/m68k/include/uapi
parentb038c6abf96843b6c45f2ebf69ad0bb1055d5d39 (diff)
m68k: io: Mark mmio read addresses as const
Passing constant __iomem tokens into the readl() family of helpers or any of the others causes a warning on m68k: include/asm-generic/io.h: In function 'ioread8_rep': arch/m68k/include/asm/io_mm.h:375:44: warning: passing argument 1 of 'raw_insb' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 375 | #define readsb(port, buf, nr) raw_insb((port), (u8 Add a 'const' modifier to the pointers to shut up the warnings here. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202309251926.bPl23AhG-lkp@intel.com/ Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/r/20230925155328.443664-1-arnd@kernel.org [geert: Fix missed rom_in_{8,be16,le16}()] Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/include/uapi')
0 files changed, 0 insertions, 0 deletions