rcu: Make SRCU mandatory
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 22 Nov 2022 21:53:57 +0000 (13:53 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 29 Nov 2022 23:00:06 +0000 (15:00 -0800)
commit0cd7e350abc40eed5d3b60292dc102f700c88388
treef5777dc4fe1aed4fbbd1a38ba56b36d5af17dcfb
parentf733615e39aa2d6ddeef33b7b2c9aa6a5a2c2785
rcu: Make SRCU mandatory

Kernels configured with CONFIG_PRINTK=n and CONFIG_SRCU=n get build
failures.  This causes trouble for deep embedded systems.  But given
that there are more than 25 instances of "select SRCU" in the kernel,
it is hard to believe that there are many kernels running in production
without SRCU.  This commit therefore makes SRCU mandatory.  The SRCU
Kconfig option remains for backwards compatibility, and will be removed
when it is no longer used.

[ paulmck: Update per kernel test robot feedback. ]

Reported-by: John Ogness <john.ogness@linutronix.de>
Reported-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: <linux-arch@vger.kernel.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Reviewed-by: John Ogness <john.ogness@linutronix.de>
include/linux/rcutiny.h
include/linux/srcu.h
kernel/rcu/Kconfig
kernel/rcu/Kconfig.debug
kernel/rcu/rcu.h
kernel/rcu/update.c