Re: [PATCH v7 2/3] x86/cpu: Check if feature string is non-zero

From: Maciej Wieczor-Retman

Date: Wed Feb 25 2026 - 02:59:26 EST


On 2026-02-24 at 21:24:45 +0100, Thomas Gleixner wrote:
>On Tue, Feb 24 2026 at 12:40, Maciej Wieczor-Retman wrote:
>> diff --git a/include/linux/cpu.h b/include/linux/cpu.h
>> index 8239cd95a005..acd3f0f4867a 100644
>> --- a/include/linux/cpu.h
>> +++ b/include/linux/cpu.h
>> @@ -233,4 +233,6 @@ int arch_get_indir_br_lp_status(struct task_struct *t, unsigned long __user *sta
>> int arch_set_indir_br_lp_status(struct task_struct *t, unsigned long status);
>> int arch_lock_indir_br_lp_status(struct task_struct *t, unsigned long status);
>>
>> +const char *x86_cap_name(unsigned int bit, char *buf);
>
>This x86 specific muck has no place in the generic header file. That's
>what architecture specific headers are for.
>
>Thanks,
>
> tglx

Oh, right, sorry, I'll move it to x86's asm/cpu.h. Thanks!

--
Kind regards
Maciej Wieczór-Retman