x86: Define byteorder
PATCH 1/1 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 <[email protected]>
--- arch/x86/include/asm/io.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/include/asm/io.h +2 -0
@@ -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) { asmvolatile ("outb %b0, %w1" : :"a" (value),"Nd" (port));
Signature · 9 lines
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 [email protected] http://lists.infradead.org/mailman/listinfo/barebox