Skip to content

Commit 03aa29f

Browse files
committed
m68k: fix io functions for ColdFire/MMU/PCI case
The inb/outb/... family of IO methods end up being multiply defined when building PCI support for the ColdFire. Compiling gives this: CC init/main.o In file included from ./arch/m68k/include/asm/io.h:4:0, from include/linux/bio.h:30, from include/linux/blkdev.h:18, from init/main.c:75: ./arch/m68k/include/asm/io_mm.h:420:0: warning: "inb" redefined ./arch/m68k/include/asm/io_mm.h:108:0: note: this is the location of the previous definition ... The ColdFire/PCI case defines its own IO access methods, so no others should be defined or used in this case. Conditionally disable other definitions that clash with it. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
1 parent 8700f09 commit 03aa29f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/m68k/include/asm/io_mm.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,8 @@ static inline void isa_delay(void)
413413
#define writew(val, addr) out_le16((addr), (val))
414414
#endif /* CONFIG_ATARI_ROM_ISA */
415415

416-
#if !defined(CONFIG_ISA) && !defined(CONFIG_ATARI_ROM_ISA)
416+
#if !defined(CONFIG_ISA) && !defined(CONFIG_ATARI_ROM_ISA) && \
417+
!(defined(CONFIG_PCI) && defined(CONFIG_COLDFIRE))
417418
/*
418419
* We need to define dummy functions for GENERIC_IOMAP support.
419420
*/

0 commit comments

Comments
 (0)