Skip to content

Commit fdc5beb

Browse files
committed
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: 77bfc8b ("parisc: Remove 64bit access on 32bit machines") Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 97c318b commit fdc5beb

File tree

1 file changed

+2
-0
lines changed
  • arch/parisc/include/asm

1 file changed

+2
-0
lines changed

arch/parisc/include/asm/io.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ extern void outsl (unsigned long port, const void *src, unsigned long count);
227227
* value for either 32 or 64 bit mode */
228228
#define F_EXTEND(x) ((unsigned long)((x) | (0xffffffff00000000ULL)))
229229

230+
#ifdef CONFIG_64BIT
230231
#define ioread64 ioread64
231232
#define ioread64be ioread64be
232233
#define iowrite64 iowrite64
@@ -235,6 +236,7 @@ extern u64 ioread64(const void __iomem *addr);
235236
extern u64 ioread64be(const void __iomem *addr);
236237
extern void iowrite64(u64 val, void __iomem *addr);
237238
extern void iowrite64be(u64 val, void __iomem *addr);
239+
#endif
238240

239241
#include <asm-generic/iomap.h>
240242
/*

0 commit comments

Comments
 (0)