diff options
| author | Masahiro Yamada <[email protected]> | 2016-01-24 23:27:48 +0900 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2016-01-25 10:39:59 -0500 |
| commit | 84b8bf6d5d2a52fb40124c881de162b094ff5cc1 (patch) | |
| tree | 92f41f93188419298d31121a58a085d113190ef7 /drivers/net | |
| parent | be6b2b31708a4a87425a81811323191b67947e56 (diff) | |
bug.h: move BUILD_BUG_* defines to include/linux/bug.h
BUILD_BUG_* macros have been defined in several headers. It would
be nice to collect them in include/linux/bug.h like Linux.
This commit is cherry-picking useful macros from include/linux/bug.h
of Linux 4.4.
I did not import BUILD_BUG_ON_MSG() because it would not work if it
is used with include/common.h in U-Boot. I'd like to postpone it
until the root cause (the "error()" macro in include/common.h causes
the name conflict with "__attribute__((error()))") is fixed.
Signed-off-by: Masahiro Yamada <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'drivers/net')
| -rw-r--r-- | drivers/net/fsl-mc/mc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index bac4610fd99..4b9b3720f74 100644 --- a/drivers/net/fsl-mc/mc.c +++ b/drivers/net/fsl-mc/mc.c @@ -5,6 +5,7 @@ */ #include <common.h> #include <errno.h> +#include <linux/bug.h> #include <asm/io.h> #include <libfdt.h> #include <fdt_support.h> |
