Skip to content

Commit

Permalink
ARM: 7267/1: Remove BUILD_BUG_ON from asm/bug.h
Browse files Browse the repository at this point in the history
BUILD_BUG_ON is defined in linux/kernel.h but that is not included by the
asm/bug.h header which uses it. This causes a build error:

...include/linux/mtd/map.h: In function 'inline_map_read':
...include/linux/mtd/map.h:408:3: error: implicit declaration of function
'BUILD_BUG_ON' [-Werror=implicit-function-declaration]

The check is not essential and is not present for other architectures, so
just remove it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Simon Glass authored and Russell King committed Jan 5, 2012
1 parent 2b97479 commit 27edaca
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/arm/include/asm/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 27edaca

Please sign in to comment.