[PATCH v3 2/2] x86: Fix /proc/cpuinfo cpumask warning
Borislav Petkov
bp at alien8.de
Fri Nov 4 10:22:39 AEDT 2022
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.
https://people.kernel.org/tglx/notes-about-netiquette
More information about the Linuxppc-dev
mailing list