Commit 5361471437a97cf493c2aa7d881bbedc9c248415

Authored by James Hogan
Committed by Paul E. McKenney
1 parent c34ac00cae

rcu: Select IRQ_WORK from TREE_PREEMPT_RCU

TREE_RCU and TREE_PREEMPT_RCU both cause kernel/rcutree.c to be built,
but only TREE_RCU selects IRQ_WORK, which can result in an undefined
reference to irq_work_queue for some (random) configs:

kernel/built-in.o In function `rcu_start_gp_advanced':
kernel/rcutree.c:1564: undefined reference to `irq_work_queue'

Select IRQ_WORK from TREE_PREEMPT_RCU too to fix this.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Dipankar Sarma <dipankar@in.ibm.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -470,6 +470,7 @@
470 470 config TREE_PREEMPT_RCU
471 471 bool "Preemptible tree-based hierarchical RCU"
472 472 depends on PREEMPT
  473 + select IRQ_WORK
473 474 help
474 475 This option selects the RCU implementation that is
475 476 designed for very large SMP systems with hundreds or