public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Reworking configurability of X86_FEATURE_NAMES
@ 2023-05-10  6:57 Lukas Bulwahn
  2023-05-10  6:57 ` [PATCH 1/2] x86: make X86_FEATURE_NAMES non-configurable in prompt Lukas Bulwahn
  2023-05-10  6:57 ` [PATCH 2/2] x86: always build with X86_FEATURE_NAMES functionality Lukas Bulwahn
  0 siblings, 2 replies; 4+ messages in thread
From: Lukas Bulwahn @ 2023-05-10  6:57 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	H . Peter Anvin
  Cc: Masahiro Yamada, Arnd Bergmann, kernel-janitors, linux-kernel,
	Lukas Bulwahn

Dear Dave, dear Boris, dear x86 maintainers,


as follow-up to the discussion on my initial patch on changing the
visibility of X86_FEATURE_NAMES (see Link), here are two patches:

Patch 1 simply makes the minimal one-line change to make X86_FEATURE_NAMES
disappear from the prompt.

Patch 2 is the more radical change to remove the whole config and see which
code would generally be impacted; just as quick exploration.

The diffstat shows we are getting rid of a bit of code throughout arch/x86,
but the change and reduction is not too complex either:

 arch/x86/Kconfig                  | 12 ------------
 arch/x86/Kconfig.cpu              |  2 +-
 arch/x86/boot/Makefile            |  2 --
 arch/x86/boot/cpu.c               | 13 -------------
 arch/x86/include/asm/cpufeature.h |  5 -----
 arch/x86/kernel/cpu/Makefile      |  4 +---
 arch/x86/kernel/cpu/common.c      |  4 ----
 7 files changed, 2 insertions(+), 40 deletions(-)

Probably, you just want to pick patch 1 and wait for any complaints. Or if
you are confident the compliants will not show up, simply apply both.

Otherwise, I will put it on my list to come back in a year or two, and if
there were no complaints till then, provide the updated patch to remove the
X86_FEATURE_NAMES config then.

Link: https://lore.kernel.org/all/20230509084007.24373-1-lukas.bulwahn@gmail.com/

Best regards,

Lukas


Lukas Bulwahn (2):
  x86: make X86_FEATURE_NAMES non-configurable in prompt
  x86: always build with X86_FEATURE_NAMES functionality

 arch/x86/Kconfig                  | 12 ------------
 arch/x86/Kconfig.cpu              |  2 +-
 arch/x86/boot/Makefile            |  2 --
 arch/x86/boot/cpu.c               | 13 -------------
 arch/x86/include/asm/cpufeature.h |  5 -----
 arch/x86/kernel/cpu/Makefile      |  4 +---
 arch/x86/kernel/cpu/common.c      |  4 ----
 7 files changed, 2 insertions(+), 40 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-15 21:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-10  6:57 [PATCH 0/2] Reworking configurability of X86_FEATURE_NAMES Lukas Bulwahn
2023-05-10  6:57 ` [PATCH 1/2] x86: make X86_FEATURE_NAMES non-configurable in prompt Lukas Bulwahn
2023-05-10  6:57 ` [PATCH 2/2] x86: always build with X86_FEATURE_NAMES functionality Lukas Bulwahn
2023-05-15 21:43   ` [tip: x86/cpu] x86/cpu: Remove X86_FEATURE_NAMES tip-bot2 for Lukas Bulwahn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox