Skip to contentSkip to conversation

linux-next: build warning after merge of the rcu tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Jun 21, 2017 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Paul,

After merging the rcu tree, today's linux-next build (x86_64 allnoconfig) produced this warning:

kernel/cpu.c: In function 'boot_cpu_state_init':
kernel/cpu.c:1778:6: warning: unused variable 'cpu' [-Wunused-variable]

  int cpu;
      ^

Introduced by commit

faeb334286b7 ("rcu: Migrate callbacks earlier in the CPU-offline timeline")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 5 lines · Stephen Rothwell

Hi Paul,

After merging the rcu tree, today's linux-next build (x86_64 allnoconfig) produced this warning:

Quoted 8 lines

kernel/cpu.c: In function 'boot_cpu_state_init':
kernel/cpu.c:1778:6: warning: unused variable 'cpu' [-Wunused-variable]

  int cpu;
      ^

Introduced by commit

faeb334286b7 ("rcu: Migrate callbacks earlier in the CPU-offline timeline")

Hello, Stephen,

Apologies, should be fixed now -- added a __maybe_unused.

But I didn't realize you did SMP=n builds! ;-)

Thanx, Paul