bug.h: sync BUILD_BUG stuff with Linux 4.13
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 16 Sep 2017 05:10:44 +0000 (14:10 +0900)
committerTom Rini <trini@konsulko.com>
Wed, 4 Oct 2017 16:00:19 +0000 (12:00 -0400)
commit059a48096c883e98bc1a4a561abc0069f44cbfea
treec6652ba59c9636950bd4b1ea4f90a9266c69c5eb
parentf7d6b896d641767e04409fc3abf05338b19d9109
bug.h: sync BUILD_BUG stuff with Linux 4.13

As commit 84b8bf6d5d2a ("bug.h: move BUILD_BUG_* defines to
include/linux/bug.h") noted, include/linux/bug.h was locally
modified for U-Boot because the name conflict of error() caused
build errors at that time.

Now error() is gone, so we can fully sync BUILD_BUG* with Linux.
These macros are just compile-time utilities.  Nothing depends on
platform code, so it should make sense to simply copy Linux's ones.

Please note Linux split BUILD_BUG stuff out into <linux/build_bug.h>
by commit bc6245e5efd7.  Let's follow it.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
include/linux/bug.h
include/linux/build_bug.h [new file with mode: 0644]
include/linux/compiler.h