diff --git a/debian/changelog b/debian/changelog index a7c3fa296..7e4ddca6a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,10 +1,14 @@ linux (3.11.6-2) UNRELEASED; urgency=low + [ Ben Hutchings ] * [sh4] Reduce compiler version to gcc-4.7, as gcc-4.8 is not yet available * [ia64] Reduce compiler version to gcc-4.6, matching gcc-defaults (fixes FTBFS) + [ Aurelien Jarno ] + * UAPI: include in linux/raid/md_p.h. + -- Ben Hutchings Tue, 29 Oct 2013 14:36:09 +0000 linux (3.11.6-1) unstable; urgency=low diff --git a/debian/patches/bugfix/all/UAPI-include-asm-byteorder.h-in-linux-raid-md_p.h.patch b/debian/patches/bugfix/all/UAPI-include-asm-byteorder.h-in-linux-raid-md_p.h.patch new file mode 100644 index 000000000..6bdc3737e --- /dev/null +++ b/debian/patches/bugfix/all/UAPI-include-asm-byteorder.h-in-linux-raid-md_p.h.patch @@ -0,0 +1,30 @@ +From: Aurelien Jarno +Date: Tue, 29 Oct 2013 11:55:17 +0100 +Subject: [PATCH] UAPI: include in linux/raid/md_p.h +Forwarded: http://comments.gmane.org/gmane.linux.kernel/1586604 + +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 at the beginning of this +header to make it usable alone. This is needed to compile klibc on MIPS. + +Signed-off-by: Aurelien Jarno +--- + include/uapi/linux/raid/md_p.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/uapi/linux/raid/md_p.h b/include/uapi/linux/raid/md_p.h +index fe1a540..f7cf7f3 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 ++#include + + /* + * RAID superblock. diff --git a/debian/patches/series b/debian/patches/series index 64c49e236..66a28c93c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -79,3 +79,4 @@ bugfix/m68k/atari-irqs.patch bugfix/all/crypto-ansi_cprng-Fix-off-by-one-error-in-non-block-.patch features/all/mvsas-Recognise-device-subsystem-9485-9485-as-88SE94.patch bugfix/all/kbuild-use-nostdinc-in-compile-tests.patch +bugfix/all/UAPI-include-asm-byteorder.h-in-linux-raid-md_p.h.patch