Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: hide ioread64 declaration on 32-bit

The definition of ioread64 etc is hidden on 32-bit, but the declaration
remained by accident, which led to the generic definition getting left
out:

ERROR: modpost: "ioread64" [drivers/pci/switch/switchtec.ko] undefined!

Hide the declaration and #define under the same #ifdef.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 77bfc8bdb5a1 ("parisc: Remove 64bit access on 32bit machines")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+2
+2
arch/parisc/include/asm/io.h
··· 227 227 * value for either 32 or 64 bit mode */ 228 228 #define F_EXTEND(x) ((unsigned long)((x) | (0xffffffff00000000ULL))) 229 229 230 + #ifdef CONFIG_64BIT 230 231 #define ioread64 ioread64 231 232 #define ioread64be ioread64be 232 233 #define iowrite64 iowrite64 ··· 236 235 extern u64 ioread64be(const void __iomem *addr); 237 236 extern void iowrite64(u64 val, void __iomem *addr); 238 237 extern void iowrite64be(u64 val, void __iomem *addr); 238 + #endif 239 239 240 240 #include <asm-generic/iomap.h> 241 241 /*