Re: [PATCH v3 2/2] x86: Fix /proc/cpuinfo cpumask warning

Borislav Petkov
2022-11-03T23:23:05Z

On Thu, Nov 03, 2022 at 10:31:30AM -0700, Yury Norov wrote:
> Let's take for example cpu_llc_shared_mask() added by you in
> arch/x86/include/asm/smp.h recently:
>
> static inline struct cpumask *cpu_llc_shared_mask(int cpu)
> {
> return per_cpu(cpu_llc_shared_map, cpu);
> }
>
> It's in a global header and available to the rest of the kernel, just as
> well.

Just like

static inline struct cpumask *cpu_l2c_shared_mask(int cpu)
{
return per_cpu(cpu_l2c_shared_map, cpu);
}

should check != must check.

But it's perfectly fine if you're going to attempt to prove some bogus
argument of yours - I can safely ignore you.

--
Regards/Gruss,
Boris.