]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Fix harmless omission of "CONFIG_" from #if condition
authorLai Jiangshan <jiangshanlai@gmail.com>
Tue, 15 Oct 2019 10:23:56 +0000 (10:23 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 24 Jan 2020 18:33:13 +0000 (10:33 -0800)
commit9cefd6ca028f611d0f31ed16395ea527159c49fb
treeee8e9f901ff18fd4d9cb3ed4d57756fce58e7b60
parente2fd4aed8f2e22aa31f3a2798a53efa57bd8c1bf
rcu: Fix harmless omission of "CONFIG_" from #if condition

The C preprocessor macros SRCU and TINY_RCU should instead be CONFIG_SRCU
and CONFIG_TINY_RCU, respectively in the #f in kernel/rcu/rcu.h. But
there is no harm when "TINY_RCU" is wrongly used, which are always
non-defined, which makes "!defined(TINY_RCU)" always true, which means
the code block is always included, and the included code block doesn't
cause any compilation error so far in CONFIG_TINY_RCU builds.  It is
also the reason this change should not be taken in -stable.

This commit adds the needed "CONFIG_" prefix to both macros.

Not for -stable.

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcu.h