aboutsummaryrefslogtreecommitdiffstats
path: root/mm/debug.c
diff options
context:
space:
mode:
authorNick Desaulniers <[email protected]>2021-08-02 20:23:20 +0000
committerMiguel Ojeda <[email protected]>2021-09-08 23:14:28 +0000
commitb83a908498d68fafca931e1276e145b339cac5fb (patch)
tree2795a8bbc93b56fd96b8663d6b1b97d321d713eb /mm/debug.c
parentMAINTAINERS: add Nick as Reviewer for compiler_attributes.h (diff)
downloadkernel-b83a908498d68fafca931e1276e145b339cac5fb.tar.gz
kernel-b83a908498d68fafca931e1276e145b339cac5fb.zip
compiler_attributes.h: move __compiletime_{error|warning}
Clang 14 will add support for __attribute__((__error__(""))) and __attribute__((__warning__(""))). To make use of these in __compiletime_error and __compiletime_warning (as used by BUILD_BUG and friends) for newer clang and detect/fallback for older versions of clang, move these to compiler_attributes.h and guard them with __has_attribute preprocessor guards. Link: https://reviews.llvm.org/D106030 Link: https://bugs.llvm.org/show_bug.cgi?id=16428 Link: https://github.com/ClangBuiltLinux/linux/issues/1173 Signed-off-by: Nick Desaulniers <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Reviewed-by: Kees Cook <[email protected]> [Reworded, landed in Clang 14] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'mm/debug.c')
0 files changed, 0 insertions, 0 deletions