]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
compiler-clang.h: Drop explicit version number from "all" diagnostic macro
authorNathan Chancellor <nathan@kernel.org>
Sun, 17 May 2026 23:05:19 +0000 (13:05 -1000)
committerNathan Chancellor <nathan@kernel.org>
Wed, 27 May 2026 22:20:06 +0000 (15:20 -0700)
This is more consistent with what commit 7efa84b5cdd6 ("compiler-gcc.h:
Introduce __diag_GCC_all") did for GCC.

Link: https://patch.msgid.link/20260517-bump-minimum-supported-llvm-version-to-17-v2-16-b3b8cda46bdd@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
include/linux/compiler-clang.h

index eadf48b7b5b1ac3559bea146ddcc2afcfc12988f..a105e2e8016c2a1f295add5a219ebef47e1ffee1 100644 (file)
 #define __diag_str(s)          __diag_str1(s)
 #define __diag(s)              _Pragma(__diag_str(clang diagnostic s))
 
-#define __diag_clang_13(s)     __diag(s)
+#define __diag_clang_all(s)    __diag(s)
 
 #define __diag_ignore_all(option, comment) \
-       __diag_clang(13, ignore, option)
+       __diag_clang(all, ignore, option)
 
 /*
  * clang has horrible behavior with "g" or "rm" constraints for asm