diff options
| author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-05-17 14:33:17 -0400 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-07-12 18:39:18 -0400 |
| commit | 95394e69c42f0da83a176936fdb28f6cac57ea69 (patch) | |
| tree | e9b76488cacbbef3ca134ebb0718f28729bd71e5 /kernel/rcu/tree.c | |
| parent | ab6b82147f471e31d9397c95d523631b6c8953f2 (diff) | |
rcu: Remove "inline" from panic_on_rcu_stall() and rcu_blocking_is_gp()
These functions are in kernel/rcu/tree.c, which is not an include file,
so there is no problem dropping the "inline", especially given that these
functions are nowhere near a fastpath. This commit therefore delegates
the inlining decision to the compiler by dropping the "inline".
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/tree.c')
| -rw-r--r-- | kernel/rcu/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index ebdbb5f96e5c..3504ee35e226 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
| @@ -1342,7 +1342,7 @@ static void rcu_stall_kick_kthreads(struct rcu_state *rsp) | |||
| 1342 | } | 1342 | } |
| 1343 | } | 1343 | } |
| 1344 | 1344 | ||
| 1345 | static inline void panic_on_rcu_stall(void) | 1345 | static void panic_on_rcu_stall(void) |
| 1346 | { | 1346 | { |
| 1347 | if (sysctl_panic_on_rcu_stall) | 1347 | if (sysctl_panic_on_rcu_stall) |
| 1348 | panic("RCU Stall\n"); | 1348 | panic("RCU Stall\n"); |
| @@ -3080,7 +3080,7 @@ EXPORT_SYMBOL_GPL(kfree_call_rcu); | |||
| 3080 | * when there was in fact only one the whole time, as this just adds | 3080 | * when there was in fact only one the whole time, as this just adds |
| 3081 | * some overhead: RCU still operates correctly. | 3081 | * some overhead: RCU still operates correctly. |
| 3082 | */ | 3082 | */ |
| 3083 | static inline int rcu_blocking_is_gp(void) | 3083 | static int rcu_blocking_is_gp(void) |
| 3084 | { | 3084 | { |
| 3085 | int ret; | 3085 | int ret; |
| 3086 | 3086 | ||
