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>
This commit is contained in:
parent
d68f29f08f
commit
c7efd11b38
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue