[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20241216072538.33280-1-shyamsaini@linux.microsoft.com>
Date: Sun, 15 Dec 2024 23:25:38 -0800
From: Shyam Saini <shyamsaini@...ux.microsoft.com>
To: masahiroy@...nel.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] init/Kconfig: conditionalize GCC10_NO_ARRAY_BOUNDS
GCC10_NO_ARRAY_BOUNDS is a GCC option and should only be enabled
if CC is GCC.
Signed-off-by: Shyam Saini <shyamsaini@...ux.microsoft.com>
---
init/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init/Kconfig b/init/Kconfig
index c1f9eb3d5f2e8..52bb1419d6c0e 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -905,7 +905,7 @@ config CC_IMPLICIT_FALLTHROUGH
# Currently, disable gcc-10+ array-bounds globally.
# It's still broken in gcc-13, so no upper bound yet.
config GCC10_NO_ARRAY_BOUNDS
- def_bool y
+ def_bool y if CC_IS_GCC
config CC_NO_ARRAY_BOUNDS
bool
base-commit: e25c8d66f6786300b680866c0e0139981273feba
--
2.34.1
Powered by blists - more mailing lists