]> git.baikalelectronics.ru Git - kernel.git/commit
compiler-clang.h: Add __diag infrastructure for clang
authorNathan Chancellor <nathan@kernel.org>
Fri, 4 Mar 2022 22:46:42 +0000 (04:16 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 5 Mar 2022 23:29:36 +0000 (15:29 -0800)
commit663b786886656e1181886b187a77ea2e0570bc8e
tree2008d36f755472ce76dd3ef7ae72914d71e3c408
parente961a5aa7c2579c605e36e645bebe06186e0e6b9
compiler-clang.h: Add __diag infrastructure for clang

Add __diag macros similar to those in compiler-gcc.h, so that warnings
that need to be adjusted for specific cases but not globally can be
ignored when building with clang.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220304224645.3677453-6-memxor@gmail.com
[ Kartikeya: wrote commit message ]
include/linux/compiler-clang.h