Re: [PATCH v12 2/4] x86/cpu: Check if feature string is non-zero
From: Borislav Petkov
Date: Mon Mar 30 2026 - 17:18:25 EST
On Mon, Mar 30, 2026 at 08:42:11PM +0000, Maciej Wieczor-Retman wrote:
> + * Return the feature's "name" if available, otherwise return the
> + * feature's bit numerals in "word:bit" format so it's easier to identify.
This "numerals" thing is meh but I see why people use it.
It doesn't get any clearer than "word number and bit position".
> X86_NAMELESS_FEAT_BUF?
>
> X86_NUM_FEAT_BUF?
>
> Not sure how to make it much more shorter without making it also unreadable.
Yeah, I'm at the same spot as you - I can't think of a better name.
Since it is not too widespread, let's leave the longer, more descriptive one
and we can change it later if really needed.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette