Re: [PATCH] init/Kconfig: conditionalize GCC10_NO_ARRAY_BOUNDS
From: Kees Cook
Date: Fri Apr 04 2025 - 13:29:39 EST
On Thu, Mar 27, 2025 at 11:35:59AM -0700, Shyam Saini wrote:
> do you have any reviews for this patch?
It's a redundant change since CC_IS_GCC is checked later:
config GCC10_NO_ARRAY_BOUNDS
def_bool y
config CC_NO_ARRAY_BOUNDS
bool
default y if CC_IS_GCC && GCC_VERSION >= 90000 && GCC10_NO_ARRAY_BOUNDS
If you wanted to make this change, then it would make sense to drop it
from CC_NO_ARRAY_BOUNDS at the same time.
-Kees
--
Kees Cook