4fc891d
BUILD_BUG_ON is defined in linux/kernel.h but that is not included by the
4fc891d
asm/bug.h header which uses it. This causes a build error:
4fc891d
4fc891d
...include/linux/mtd/map.h: In function 'inline_map_read':
4fc891d
...include/linux/mtd/map.h:408:3: error: implicit declaration of function
4fc891d
'BUILD_BUG_ON' [-Werror=implicit-function-declaration]
4fc891d
4fc891d
The check is not essential and is not present for other architectures, so
4fc891d
just remove it.
4fc891d
4fc891d
Signed-off-by: Simon Glass <sjg <at> chromium.org>
4fc891d
---
4fc891d
 arch/arm/include/asm/bug.h |    1 -
4fc891d
 1 files changed, 0 insertions(+), 1 deletions(-)
4fc891d
4fc891d
diff --git a/arch/arm/include/asm/bug.h b/arch/arm/include/asm/bug.h
4fc891d
index 9abe7a0..fac79dc 100644
4fc891d
--- a/arch/arm/include/asm/bug.h
4fc891d
+++ b/arch/arm/include/asm/bug.h
4fc891d
@@ -32,7 +32,6 @@
4fc891d
4fc891d
 #define __BUG(__file, __line, __value)				\
4fc891d
 do {								\
4fc891d
-	BUILD_BUG_ON(sizeof(struct bug_entry) != 12);		\
4fc891d
 	asm volatile("1:\t" BUG_INSTR_TYPE #__value "\n"	\
4fc891d
 		".pushsection .rodata.str, \"aMS\", %progbits, 1\n" \
4fc891d
 		"2:\t.asciz " #__file "\n" 			\
4fc891d
--