diff options
Diffstat (limited to 'meta/recipes-kernel/linux-libc-headers/linux-libc-headers')
-rw-r--r-- | meta/recipes-kernel/linux-libc-headers/linux-libc-headers/UAPI-include-asm-byteorder.h-in-linux-raid-md_p.h.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/UAPI-include-asm-byteorder.h-in-linux-raid-md_p.h.patch b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/UAPI-include-asm-byteorder.h-in-linux-raid-md_p.h.patch new file mode 100644 index 0000000000..1bf0e7ec85 --- /dev/null +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/UAPI-include-asm-byteorder.h-in-linux-raid-md_p.h.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From c0f8bd146a8b3e630798561c605f5669823107af Mon Sep 17 00:00:00 2001 | ||
2 | From: Aurelien Jarno <aurelien@aurel32.net> | ||
3 | Date: Thu, 14 Nov 2013 15:16:19 +1100 | ||
4 | Subject: [PATCH] UAPI: include <asm/byteorder.h> in linux/raid/md_p.h | ||
5 | |||
6 | linux/raid/md_p.h is using conditionals depending on endianess and fails | ||
7 | with an error if neither of __BIG_ENDIAN, __LITTLE_ENDIAN or | ||
8 | __BYTE_ORDER are defined, but it doesn't include any header which can | ||
9 | define these constants. This make this header unusable alone. | ||
10 | |||
11 | This patch adds a #include <asm/byteorder.h> at the beginning of this | ||
12 | header to make it usable alone. This is needed to compile klibc on MIPS. | ||
13 | |||
14 | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> | ||
15 | Signed-off-by: NeilBrown <neilb@suse.de> | ||
16 | --- | ||
17 | include/uapi/linux/raid/md_p.h | 1 + | ||
18 | 1 file changed, 1 insertion(+) | ||
19 | |||
20 | diff --git a/include/uapi/linux/raid/md_p.h b/include/uapi/linux/raid/md_p.h | ||
21 | index fe1a540..f7cf7f3 100644 | ||
22 | --- a/include/uapi/linux/raid/md_p.h | ||
23 | +++ b/include/uapi/linux/raid/md_p.h | ||
24 | @@ -16,6 +16,7 @@ | ||
25 | #define _MD_P_H | ||
26 | |||
27 | #include <linux/types.h> | ||
28 | +#include <asm/byteorder.h> | ||
29 | |||
30 | /* | ||
31 | * RAID superblock. | ||
32 | -- | ||
33 | 1.8.1.2 | ||
34 | |||