UAPI: include <asm/byteorder.h> in linux/raid/md_p.h

linux/raid/md_p.h is using conditionals depending on endianess and fails
with an error if neither of __BIG_ENDIAN, __LITTLE_ENDIAN or
__BYTE_ORDER are defined, but it doesn't include any header which can
define these constants. This make this header unusable alone.

This patch adds a #include <asm/byteorder.h> at the beginning of this
header to make it usable alone. This is needed to compile klibc on MIPS.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Aurelien Jarno 2013-11-14 15:16:19 +11:00 committed by NeilBrown
parent 79ef3a8aa1
commit c0f8bd146a
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@
#define _MD_P_H #define _MD_P_H
#include <linux/types.h> #include <linux/types.h>
#include <asm/byteorder.h>
/* /*
* RAID superblock. * RAID superblock.