Skip to content

Commit e1350e8

Browse files
bjdooks-ctpaulmckrcu
authored andcommitted
rcu: Move rcu_{expedited,normal} definitions into rcupdate.h
This commit moves the rcu_{expedited,normal} definitions from kernel/rcu/update.c to include/linux/rcupdate.h to make sure they are in sync, and also to avoid the following warning from sparse: kernel/ksysfs.c:150:5: warning: symbol 'rcu_expedited' was not declared. Should it be static? kernel/ksysfs.c:167:5: warning: symbol 'rcu_normal' was not declared. Should it be static? Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent e2167b3 commit e1350e8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

include/linux/rcupdate.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,4 +896,8 @@ rcu_head_after_call_rcu(struct rcu_head *rhp, rcu_callback_t f)
896896
return false;
897897
}
898898

899+
/* kernel/ksysfs.c definitions */
900+
extern int rcu_expedited;
901+
extern int rcu_normal;
902+
899903
#endif /* __LINUX_RCUPDATE_H */

kernel/rcu/update.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@
5151
#define MODULE_PARAM_PREFIX "rcupdate."
5252

5353
#ifndef CONFIG_TINY_RCU
54-
extern int rcu_expedited; /* from sysctl */
5554
module_param(rcu_expedited, int, 0);
56-
extern int rcu_normal; /* from sysctl */
5755
module_param(rcu_normal, int, 0);
5856
static int rcu_normal_after_boot;
5957
module_param(rcu_normal_after_boot, int, 0);

0 commit comments

Comments
 (0)