From: Shyam Saini <shyamsaini@linux.microsoft.com>
To: masahiroy@kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] init/Kconfig: conditionalize GCC10_NO_ARRAY_BOUNDS
Date: Sun, 15 Dec 2024 23:25:38 -0800 [thread overview]
Message-ID: <20241216072538.33280-1-shyamsaini@linux.microsoft.com> (raw)
GCC10_NO_ARRAY_BOUNDS is a GCC option and should only be enabled
if CC is GCC.
Signed-off-by: Shyam Saini <shyamsaini@linux.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
next reply other threads:[~2024-12-16 7:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-16 7:25 Shyam Saini [this message]
2025-02-11 22:10 ` Shyam Saini
2025-03-27 18:35 ` Shyam Saini
2025-04-04 17:29 ` Kees Cook
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241216072538.33280-1-shyamsaini@linux.microsoft.com \
--to=shyamsaini@linux.microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®