mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] x86: Define byteorder
@ 2011-09-30 13:51 Juergen Beisert
  0 siblings, 0 replies; only message in thread
From: Juergen Beisert @ 2011-09-30 13:51 UTC (permalink / raw)
  To: barebox

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>
---
 arch/x86/include/asm/io.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h
index 27ea642..9cb78e4 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));

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-5121-206917-5128 |
Vertretung Sued/Muenchen, Germany             | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-30 13:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-30 13:51 [PATCH] x86: Define byteorder Juergen Beisert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox