Commit d7118175cce7e76b3292b60832813ef1f28b6523
Committed by
Paul E. McKenney
1 parent
29154c57e3
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
rcu: Fix rcu_is_cpu_idle() #ifdef in TINY_RCU
The rcu_is_cpu_idle() function is used if CONFIG_DEBUG_LOCK_ALLOC, but TINY_RCU defines it only when CONFIG_PROVE_RCU. This causes build failures when CONFIG_DEBUG_LOCK_ALLOC=y but CONFIG_PROVE_RCU=n. This commit therefore adjusts the #ifdefs for rcu_is_cpu_idle() so that it is defined when CONFIG_DEBUG_LOCK_ALLOC=y. Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
kernel/rcutiny.c
... | ... | @@ -172,7 +172,7 @@ |
172 | 172 | local_irq_restore(flags); |
173 | 173 | } |
174 | 174 | |
175 | -#ifdef CONFIG_PROVE_RCU | |
175 | +#ifdef CONFIG_DEBUG_LOCK_ALLOC | |
176 | 176 | |
177 | 177 | /* |
178 | 178 | * Test whether RCU thinks that the current CPU is idle. |
... | ... | @@ -183,7 +183,7 @@ |
183 | 183 | } |
184 | 184 | EXPORT_SYMBOL(rcu_is_cpu_idle); |
185 | 185 | |
186 | -#endif /* #ifdef CONFIG_PROVE_RCU */ | |
186 | +#endif /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */ | |
187 | 187 | |
188 | 188 | /* |
189 | 189 | * Test whether the current CPU was interrupted from idle. Nested |