This website requires JavaScript.
Explore
Help
Register
Sign in
GitHub-Mirror
/
u-boot
Watch
2
Star
0
Fork
You've already forked u-boot
0
mirror of
https://github.com/Fishwaldo/u-boot.git
synced
2025-03-21 06:31:31 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
059a48096c
u-boot
/
include
/
linux
/
bug.h
7 lines
99 B
C
Raw
Normal View
History
Unescape
Escape
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>
2016-01-24 23:27:48 +09:00
#
ifndef _LINUX_BUG_H
#
define _LINUX_BUG_H
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>
2017-09-16 14:10:44 +09:00
#
include
<linux/build_bug.h>
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>
2016-01-24 23:27:48 +09:00
#
endif
/* _LINUX_BUG_H */
Reference in a new issue
Copy permalink