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