Commit 1d24dd4e authored by kbuild test robot's avatar kbuild test robot Committed by Paul E. McKenney

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: eda669a6 ("rcu/nocb: Atomic ->len field in rcu_segcblist structure")
Signed-off-by: default avatarkbuild test robot <lkp@intel.com>
[ paulmck: "Fixes:" updated per Stephen Rothwell feedback. ]
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 8e6af017
...@@ -88,7 +88,7 @@ struct rcu_head *rcu_cblist_dequeue(struct rcu_cblist *rclp) ...@@ -88,7 +88,7 @@ struct rcu_head *rcu_cblist_dequeue(struct rcu_cblist *rclp)
} }
/* Set the length of an rcu_segcblist structure. */ /* Set the length of an rcu_segcblist structure. */
void rcu_segcblist_set_len(struct rcu_segcblist *rsclp, long v) static void rcu_segcblist_set_len(struct rcu_segcblist *rsclp, long v)
{ {
#ifdef CONFIG_RCU_NOCB_CPU #ifdef CONFIG_RCU_NOCB_CPU
atomic_long_set(&rsclp->len, v); atomic_long_set(&rsclp->len, v);
...@@ -104,7 +104,7 @@ void rcu_segcblist_set_len(struct rcu_segcblist *rsclp, long v) ...@@ -104,7 +104,7 @@ void rcu_segcblist_set_len(struct rcu_segcblist *rsclp, long v)
* This increase is fully ordered with respect to the callers accesses * This increase is fully ordered with respect to the callers accesses
* both before and after. * both before and after.
*/ */
void rcu_segcblist_add_len(struct rcu_segcblist *rsclp, long v) static void rcu_segcblist_add_len(struct rcu_segcblist *rsclp, long v)
{ {
#ifdef CONFIG_RCU_NOCB_CPU #ifdef CONFIG_RCU_NOCB_CPU
smp_mb__before_atomic(); /* Up to the caller! */ smp_mb__before_atomic(); /* Up to the caller! */
...@@ -134,7 +134,7 @@ void rcu_segcblist_inc_len(struct rcu_segcblist *rsclp) ...@@ -134,7 +134,7 @@ void rcu_segcblist_inc_len(struct rcu_segcblist *rsclp)
* with the actual number of callbacks on the structure. This exchange is * with the actual number of callbacks on the structure. This exchange is
* fully ordered with respect to the callers accesses both before and after. * fully ordered with respect to the callers accesses both before and after.
*/ */
long rcu_segcblist_xchg_len(struct rcu_segcblist *rsclp, long v) static long rcu_segcblist_xchg_len(struct rcu_segcblist *rsclp, long v)
{ {
#ifdef CONFIG_RCU_NOCB_CPU #ifdef CONFIG_RCU_NOCB_CPU
return atomic_long_xchg(&rsclp->len, v); return atomic_long_xchg(&rsclp->len, v);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment