Skip to content

Commit 1d24dd4

Browse files
intel-lab-lkppaulmckrcu
authored andcommitted
rcu: Several rcu_segcblist functions can be static
None of rcu_segcblist_set_len(), rcu_segcblist_add_len(), or rcu_segcblist_xchg_len() are used outside of kernel/rcu/rcu_segcblist.c. This commit therefore makes them static. Fixes: eda669a ("rcu/nocb: Atomic ->len field in rcu_segcblist structure") Signed-off-by: kbuild test robot <[email protected]> [ paulmck: "Fixes:" updated per Stephen Rothwell feedback. ] Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 8e6af01 commit 1d24dd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/rcu/rcu_segcblist.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ struct rcu_head *rcu_cblist_dequeue(struct rcu_cblist *rclp)
8888
}
8989

9090
/* Set the length of an rcu_segcblist structure. */
91-
void rcu_segcblist_set_len(struct rcu_segcblist *rsclp, long v)
91+
static void rcu_segcblist_set_len(struct rcu_segcblist *rsclp, long v)
9292
{
9393
#ifdef CONFIG_RCU_NOCB_CPU
9494
atomic_long_set(&rsclp->len, v);
@@ -104,7 +104,7 @@ void rcu_segcblist_set_len(struct rcu_segcblist *rsclp, long v)
104104
* This increase is fully ordered with respect to the callers accesses
105105
* both before and after.
106106
*/
107-
void rcu_segcblist_add_len(struct rcu_segcblist *rsclp, long v)
107+
static void rcu_segcblist_add_len(struct rcu_segcblist *rsclp, long v)
108108
{
109109
#ifdef CONFIG_RCU_NOCB_CPU
110110
smp_mb__before_atomic(); /* Up to the caller! */
@@ -134,7 +134,7 @@ void rcu_segcblist_inc_len(struct rcu_segcblist *rsclp)
134134
* with the actual number of callbacks on the structure. This exchange is
135135
* fully ordered with respect to the callers accesses both before and after.
136136
*/
137-
long rcu_segcblist_xchg_len(struct rcu_segcblist *rsclp, long v)
137+
static long rcu_segcblist_xchg_len(struct rcu_segcblist *rsclp, long v)
138138
{
139139
#ifdef CONFIG_RCU_NOCB_CPU
140140
return atomic_long_xchg(&rsclp->len, v);

0 commit comments

Comments
 (0)