1 From 2ba9510721b7a76cb7fe507449fa0ac997a4cce3 Mon Sep 17 00:00:00 2001
2 From: Olivier Fourdan <ofourdan@redhat.com>
3 Date: Mon, 1 Jul 2019 13:20:39 +0200
4 Subject: [PATCH] compiler.h: Do not include sys/io.h on ARM with glibc
6 <sys/io.h> on ARM hasn't worked for a long, long time, so it was removed
7 it from glibc upstream.
9 Remove the include to avoid a compilation failure on ARM with glibc.
11 Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
12 Closes: https://gitlab.freedesktop.org/xorg/xserver/issues/840
13 Signed-off-by: Khem Raj <raj.khem@gmail.com>
15 Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/commit/fe4cd0e7f5c58fa94db36326aadc1bd4e6d73eba]
17 hw/xfree86/common/compiler.h | 30 ------------------------------
18 1 file changed, 30 deletions(-)
20 diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h
21 index 7144c6a..2b2008b 100644
22 --- a/hw/xfree86/common/compiler.h
23 +++ b/hw/xfree86/common/compiler.h
24 @@ -758,36 +758,6 @@ inl(unsigned short port)
25 return xf86ReadMmio32Le((void *) ioBase, port);
28 -#elif defined(__arm__) && defined(__linux__)
30 -/* for Linux on ARM, we use the LIBC inx/outx routines */
31 -/* note that the appropriate setup via "ioperm" needs to be done */
32 -/* *before* any inx/outx is done. */
36 -static __inline__ void
37 -xf_outb(unsigned short port, unsigned char val)
42 -static __inline__ void
43 -xf_outw(unsigned short port, unsigned short val)
48 -static __inline__ void
49 -xf_outl(unsigned short port, unsigned int val)
58 #elif defined(__nds32__)