summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2011-09-30 15:51:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-10-04 09:46:37 +0200
commitc7efd11b38fa5c0ec264a2724735df07ec5f08d8 (patch)
tree6b59c2eadafdc5610ea85a2b930eaf72c2b15e6f
parentd68f29f08fd60f632d7c64f25ac9e6249713e456 (diff)
downloadbarebox-c7efd11b38fa5c0ec264a2724735df07ec5f08d8.tar.gz
barebox-c7efd11b38fa5c0ec264a2724735df07ec5f08d8.tar.xz
x86: Define byteorder
This is required to avoid warnings like this: In file included from <some file>: include/io.h:7:5: warning: "__BYTE_ORDER" is not defined include/io.h:7:21: warning: "__BIG_ENDIAN" is not defined Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/x86/include/asm/io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h
index 27ea642527..9cb78e41ec 100644
--- a/arch/x86/include/asm/io.h
+++ b/arch/x86/include/asm/io.h
@@ -10,6 +10,8 @@
#ifndef __ASM_X86_IO_H
#define __ASM_X86_IO_H
+#include <asm/byteorder.h>
+
static inline void outb(unsigned char value, int port)
{
asm volatile("outb %b0, %w1" : : "a"(value), "Nd"(port));