]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rcu: fix header guard for rcu_all_qs()
authorAnkur Arora <ankur.a.arora@oracle.com>
Fri, 13 Dec 2024 04:06:52 +0000 (20:06 -0800)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 5 Feb 2025 15:01:55 +0000 (07:01 -0800)
commitad6b5b73ff565e88aca7a7d1286788d80c97ba71
tree763a15d4fe1504352bc06fc7fa585a8a5d58bc65
parent2014c95afecee3e76ca4a56956a936e23283f05b
rcu: fix header guard for rcu_all_qs()

rcu_all_qs() is defined for !CONFIG_PREEMPT_RCU but the declaration
is conditioned on CONFIG_PREEMPTION.

With CONFIG_PREEMPT_LAZY, CONFIG_PREEMPTION=y does not imply
CONFIG_PREEMPT_RCU=y.

Decouple the two.

Cc: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
include/linux/rcutree.h