From 80446086b9cfcc5e23a400d7fa38ec773fae68fc Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 22 Jul 2014 10:59:02 -0400 Subject: [PATCH] xfree86: Undef FAKEIT I guess this is meant to stub out all I/O port calls? Whatever, it's not been defined by the buildsystem at least as far back as monolith 6.8.2. Reviewed-by: Julien Cristau Signed-off-by: Adam Jackson Signed-off-by: Keith Packard --- hw/xfree86/common/compiler.h | 40 ++---------------------------------- 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h index c786868ca..2794f4459 100644 --- a/hw/xfree86/common/compiler.h +++ b/hw/xfree86/common/compiler.h @@ -1117,7 +1117,7 @@ inl(unsigned PORT_SIZE port) #else /* ix86 */ #if !defined(__SUNPRO_C) -#if !defined(FAKEIT) && !defined(__mc68000__) && !defined(__arm__) && \ +#if !defined(__mc68000__) && !defined(__arm__) && \ !defined(__sh__) && !defined(__hppa__) && !defined(__s390__) && \ !defined(__m32r__) && !defined(__aarch64__) && !defined(__arc__) && \ !defined(__xtensa__) @@ -1221,43 +1221,7 @@ inl(unsigned short port) } #endif /* GCCUSESGAS */ - -#else /* !defined(FAKEIT) && !defined(__mc68000__) && !defined(__arm__) && !defined(__sh__) && !defined(__hppa__) && !defined(__m32r__) && !defined(__arc__) */ - -static __inline__ void -outb(unsigned short port, unsigned char val) -{ -} - -static __inline__ void -outw(unsigned short port, unsigned short val) -{ -} - -static __inline__ void -outl(unsigned short port, unsigned int val) -{ -} - -static __inline__ unsigned int -inb(unsigned short port) -{ - return 0; -} - -static __inline__ unsigned int -inw(unsigned short port) -{ - return 0; -} - -static __inline__ unsigned int -inl(unsigned short port) -{ - return 0; -} - -#endif /* FAKEIT */ +#endif #endif /* __SUNPRO_C */ #endif /* ix86 */