RAS/AMD/ATL: Drop malformed default N from Kconfig
Subsystems (3)
PATCH 1/1 RAS/AMD/ATL: Drop malformed default N from Kconfig
First of all, it has to be 'default n' (small letter n), otherwise it looks for CONFIG_N which is absent and in case of appearance will enable something unrelated. Second and most important is that 'default n' *is* default 'default' already. Hence just drop malformed line.
--- drivers/ras/amd/atl/Kconfig | 1 - 1 file changed, 1 deletion(-)
drivers/ras/amd/atl/Kconfig +0 -1
@@ -12,7 +12,6 @@ config AMD_ATL depends on AMD_NB && X86_64 && RAS depends on AMD_NODE depends on MEMORY_FAILURE - default N help This library includes support for implementation-specific address translation procedures needed for various error
Signature · 1 line
2.50.1
Borislav Petkov
maintainerQuoted 2 lines · Andy Shevchenko
First of all, it has to be 'default n' (small letter n), otherwise it looks for
CONFIG_Nwhich is absent and in case of appearance
Who does look for CONFIG_N?
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteQuoted 5 lines · Borislav Petkov
Quoted 2 lines · Andy Shevchenko
First of all, it has to be 'default n' (small letter n), otherwise it looks for
CONFIG_Nwhich is absent and in case of appearanceWho does look for
CONFIG_N?
Hmm... I need to rephrase that. Any suggestion how to refer to the Kconfig symbol in a clearer way?
Signature · 2 lines
With Best Regards, Andy Shevchenko
Borislav Petkov
maintainerQuoted 9 lines · Andy Shevchenko
Quoted 5 lines · Borislav Petkov
Quoted 2 lines · Andy Shevchenko
First of all, it has to be 'default n' (small letter n), otherwise it looks for
CONFIG_Nwhich is absent and in case of appearanceWho does look for
CONFIG_N?Hmm... I need to rephrase that. Any suggestion how to refer to the
Kconfigsymbol in a clearer way?
So I tried searching for CONFIG_N in "make menuconfig" and it gave me many results, but with or without your patch I didn't see a difference.
Just point to the "default" grammar definition - I see
config NEW_NAME
bool "New option name"
default OLD_NAME
in Documentation/kbuild/kconfig-language.rst which says that default <symbols in caps> refers to a symbol but the grammar should be properly documented somewhere too (can't find it now...).
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteQuoted 6 lines · Borislav Petkov
Quoted 5 lines · Andy Shevchenko
Quoted 3 lines · Borislav Petkov
Quoted 2 lines · Andy Shevchenko
First of all, it has to be 'default n' (small letter n), otherwise it looks for
CONFIG_Nwhich is absent and in case of appearance
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Who does look for
CONFIG_N?Hmm... I need to rephrase that. Any suggestion how to refer to the
Kconfigsymbol in a clearer way?So I tried searching for
CONFIG_Nin "make menuconfig" and it gave me many results, but with or without your patch I didn't see a difference.
And it has to be no difference (with all my hopes we do *not* have 'config N').
Quoted 9 lines
Just point to the "default" grammar definition - I see
config
NEW_NAME
bool "New option name"
defaultOLD_NAMEin
Documentation/kbuild/kconfig-language.rstwhich says that default <symbols in caps> refers to a symbol but the grammar should be properly documented somewhere too (can't find it now...).
Yeah, but here is the bug report now for dangling Kconfig symbols
https://bugzilla.kernel.org/show_bug.cgi?id=216748
this patch addresses one of the complains the bug report has.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Borislav Petkov
maintainerQuoted 3 lines · Andy Shevchenko
Yeah, but here is the bug report now for dangling
Kconfigsymbols
https://bugzilla.kernel.org/show_bug.cgi?id=216748
this patch addresses one of the complains the bug report has.
But N is not dangling - AFAICT, it is a non-existant Kconfig symbol.
So the N in "default N" is evaluated as another Kconfig symbol and not as the "no" it should be.
So can we explain *that* in the commit message in a simple, understandable language?
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteQuoted 5 lines · Borislav Petkov
Quoted 3 lines · Andy Shevchenko
Yeah, but here is the bug report now for dangling
Kconfigsymbols
https://bugzilla.kernel.org/show_bug.cgi?id=216748
this patch addresses one of the complains the bug report has.
Quoted 7 lines
But N is not dangling - AFAICT, it is a non-existant
Kconfigsymbol.So the N in "default N" is evaluated as another
Kconfigsymbol and not as the "no" it should be.So can we explain *that* in the commit message in a simple, understandable language?
Sure.
Signature · 2 lines
With Best Regards, Andy Shevchenko