From 6f49ce71811722381cb641cc677c6b9170467bee Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 3 Feb 2012 13:38:02 +0100 Subject: [PATCH] linux: add patch to remove BUILD_BUG_ON from asm/bug.h Signed-off-by: Stephan Raue --- ...3.2.2-903-Remove_BUILD_BUG_ON_from_asm-bug.h.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/linux/patches/linux-3.2.2-903-Remove_BUILD_BUG_ON_from_asm-bug.h.patch diff --git a/packages/linux/patches/linux-3.2.2-903-Remove_BUILD_BUG_ON_from_asm-bug.h.patch b/packages/linux/patches/linux-3.2.2-903-Remove_BUILD_BUG_ON_from_asm-bug.h.patch new file mode 100644 index 0000000000..9d0eb6325f --- /dev/null +++ b/packages/linux/patches/linux-3.2.2-903-Remove_BUILD_BUG_ON_from_asm-bug.h.patch @@ -0,0 +1,11 @@ +diff -Naur linux-3.2.2/arch/arm/include/asm/bug.h linux-3.2.2.patch/arch/arm/include/asm/bug.h +--- linux-3.2.2/arch/arm/include/asm/bug.h 2012-01-26 01:39:32.000000000 +0100 ++++ linux-3.2.2.patch/arch/arm/include/asm/bug.h 2012-02-03 02:52:23.960027219 +0100 +@@ -32,7 +32,6 @@ + + #define __BUG(__file, __line, __value) \ + do { \ +- BUILD_BUG_ON(sizeof(struct bug_entry) != 12); \ + asm volatile("1:\t" BUG_INSTR_TYPE #__value "\n" \ + ".pushsection .rodata.str, \"aMS\", %progbits, 1\n" \ + "2:\t.asciz " #__file "\n" \