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

From: Thomas Gleixner

Date: Tue Feb 24 2026 - 15:24:51 EST


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