]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7267/1: Remove BUILD_BUG_ON from asm/bug.h
authorSimon Glass <sjg@chromium.org>
Tue, 3 Jan 2012 19:49:19 +0000 (20:49 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 5 Jan 2012 13:23:22 +0000 (13:23 +0000)
commitcee44476102a0563c74b87f93c5b52ebed716d92
tree0e54138e1bb1321042310e284f12702385999aa6
parent09b9fb0bdf6bae8e336ac75d7fd415ff1c2f1829
ARM: 7267/1: Remove BUILD_BUG_ON from asm/bug.h

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>
arch/arm/include/asm/bug.h