[PATCH v2 16/16] compiler-clang.h: Drop explicit version number from "all" diagnostic macro

From: Nathan Chancellor

Date: Sun May 17 2026 - 19:08:08 EST


This is more consistent with what commit 7efa84b5cdd6 ("compiler-gcc.h:
Introduce __diag_GCC_all") did for GCC.

Signed-off-by: Nathan Chancellor <nathan@xxxxxxxxxx>
---
include/linux/compiler-clang.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h
index eadf48b7b5b1..a105e2e8016c 100644
--- a/include/linux/compiler-clang.h
+++ b/include/linux/compiler-clang.h
@@ -122,10 +122,10 @@
#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

--
2.54.0