summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2013-11-14 08:16:19 +0400
committerNeilBrown <neilb@suse.de>2013-11-19 08:19:18 +0400
commitc0f8bd146a8b3e630798561c605f5669823107af (patch)
tree1773655dfcc772b43174b85721d889f785ffd779 /include/uapi
parent79ef3a8aa1cb1523cc231c9a90a278333c21f761 (diff)
downloadlinux-c0f8bd146a8b3e630798561c605f5669823107af.tar.xz
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>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/raid/md_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/raid/md_p.h b/include/uapi/linux/raid/md_p.h
index fe1a5406d4d9..f7cf7f351144 100644
--- a/include/uapi/linux/raid/md_p.h
+++ b/include/uapi/linux/raid/md_p.h
@@ -16,6 +16,7 @@
#define _MD_P_H
#include <linux/types.h>
+#include <asm/byteorder.h>
/*
* RAID superblock.