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 <yamada.masahiro@socionext.com> Reviewed-by:
Tom Rini <trini@konsulko.com>
Showing
- arch/arm/mach-tegra/ap.c 1 addition, 0 deletionsarch/arm/mach-tegra/ap.c
- cmd/dtt.c 1 addition, 0 deletionscmd/dtt.c
- drivers/gpio/gpio-uclass.c 1 addition, 0 deletionsdrivers/gpio/gpio-uclass.c
- drivers/mtd/ubi/build.c 1 addition, 0 deletionsdrivers/mtd/ubi/build.c
- drivers/net/fsl-mc/mc.c 1 addition, 0 deletionsdrivers/net/fsl-mc/mc.c
- drivers/pinctrl/uniphier/pinctrl-uniphier.h 1 addition, 3 deletionsdrivers/pinctrl/uniphier/pinctrl-uniphier.h
- drivers/usb/dwc3/gadget.c 1 addition, 0 deletionsdrivers/usb/dwc3/gadget.c
- drivers/usb/dwc3/linux-compat.h 0 additions, 2 deletionsdrivers/usb/dwc3/linux-compat.h
- fs/ubifs/replay.c 1 addition, 0 deletionsfs/ubifs/replay.c
- fs/ubifs/super.c 1 addition, 0 deletionsfs/ubifs/super.c
- include/common.h 0 additions, 3 deletionsinclude/common.h
- include/linux/bug.h 55 additions, 0 deletionsinclude/linux/bug.h
Loading
Please register or sign in to comment