Skip to contentSkip to conversation

RAS/AMD/ATL: Drop malformed default N from Kconfig

PATCH Superseded Andy Shevchenko 2 participants 7 messages May 13

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index 6e03942cd7da..44c2fd7febc5 100644
@@ -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
maintainer
#1 lore raw
Quoted 2 lines · Andy Shevchenko

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

Who does look for CONFIG_N?

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
#2 lore raw
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_N which is absent and in case of appearance

Who 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
maintainer
#3 lore raw
Quoted 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_N which is absent and in case of appearance

Who does look for CONFIG_N?

Hmm... I need to rephrase that. Any suggestion how to refer to the Kconfig symbol 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-netiquette
#4 lore raw
Quoted 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_N which 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 Kconfig symbol 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.

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"
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...).

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
maintainer
#5 lore raw
Quoted 3 lines · Andy Shevchenko

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.

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-netiquette
#6 lore raw
Quoted 5 lines · Borislav Petkov
Quoted 3 lines · Andy Shevchenko

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.

Quoted 7 lines

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?

Sure.

Signature · 2 lines
With Best Regards,
Andy Shevchenko