public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH]  rcu: Remove rcu_*_state declaration
  2019-01-09 14:13 [PATCH] rcu: Remove rcu_*_state declaration Peng Hao
@ 2019-01-09 13:52 ` Paul E. McKenney
  0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2019-01-09 13:52 UTC (permalink / raw)
  To: Peng Hao; +Cc: josh, linux-kernel

On Wed, Jan 09, 2019 at 10:13:28PM +0800, Peng Hao wrote:
> Because of just only one set of rcu_state, the declaration of
> rcu_sched_state/rcu_bh_state/rcu_preempt_state is unnecessary.
> 
> Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>

This does not apply to my current -rcu tree.  Please see branch "dev"
of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git.

							Thanx, Paul

> ---
>  kernel/rcu/tree.h | 7 -------
>  1 file changed, 7 deletions(-)
> 
> diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h
> index 703e19f..9ea704c 100644
> --- a/kernel/rcu/tree.h
> +++ b/kernel/rcu/tree.h
> @@ -401,13 +401,6 @@ struct rcu_state {
>  /*
>   * RCU implementation internal declarations:
>   */
> -extern struct rcu_state rcu_sched_state;
> -
> -extern struct rcu_state rcu_bh_state;
> -
> -#ifdef CONFIG_PREEMPT_RCU
> -extern struct rcu_state rcu_preempt_state;
> -#endif /* #ifdef CONFIG_PREEMPT_RCU */
> 
>  int rcu_dynticks_snap(struct rcu_data *rdp);
> 
> -- 
> 1.8.3.1
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH]  rcu: Remove rcu_*_state declaration
@ 2019-01-09 14:13 Peng Hao
  2019-01-09 13:52 ` Paul E. McKenney
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Hao @ 2019-01-09 14:13 UTC (permalink / raw)
  To: paulmck, josh; +Cc: linux-kernel, Peng Hao

Because of just only one set of rcu_state, the declaration of
rcu_sched_state/rcu_bh_state/rcu_preempt_state is unnecessary.

Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
---
 kernel/rcu/tree.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h
index 703e19f..9ea704c 100644
--- a/kernel/rcu/tree.h
+++ b/kernel/rcu/tree.h
@@ -401,13 +401,6 @@ struct rcu_state {
 /*
  * RCU implementation internal declarations:
  */
-extern struct rcu_state rcu_sched_state;
-
-extern struct rcu_state rcu_bh_state;
-
-#ifdef CONFIG_PREEMPT_RCU
-extern struct rcu_state rcu_preempt_state;
-#endif /* #ifdef CONFIG_PREEMPT_RCU */
 
 int rcu_dynticks_snap(struct rcu_data *rdp);
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-09 13:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-09 14:13 [PATCH] rcu: Remove rcu_*_state declaration Peng Hao
2019-01-09 13:52 ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox