Re: [tglx-devel:x86/l1dflush 7/9] arch/x86/mm/tlb.c:354:13: sparse: sparse: incorrect type in initializer (different address spaces)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 27, 2021 at 10:00:48AM -0700, Linus Torvalds wrote:
> On Mon, Apr 26, 2021 at 11:37 PM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> >
> > >  > 354                if (this_cpu_read(cpu_info.smt_active)) {
> >
> > That's a valid construct and the kernel of full of percpuvar.member reads/writes.
> 
> Hmm. "cpu_info" doesn't seem to be marked as a percpu data structure.
> 
> Is this perhaps a UP config? Because we have:

Yes, most probably.
Just to be sure, I checked with i386_defconfig (which is SMP) and
sparse doesn't complain (but then does if CONFIG_SMP is set to 'n').

-- Luc



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux