public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rcu: remove needless struct notifier_block predeclaration
@ 2010-03-29  2:33 Lai Jiangshan
  2010-03-29  4:44 ` Paul E. McKenney
  0 siblings, 1 reply; 2+ messages in thread
From: Lai Jiangshan @ 2010-03-29  2:33 UTC (permalink / raw)
  To: Paul E. McKenney, Ingo Molnar, LKML


cleanup: remove needless struct notifier_block predeclaration 

diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h
index a519587..ae7b05e 100644
--- a/include/linux/rcutiny.h
+++ b/include/linux/rcutiny.h
@@ -86,8 +86,6 @@ static inline void synchronize_rcu_bh_expedited(void)
 	synchronize_sched();
 }
 
-struct notifier_block;
-
 #ifdef CONFIG_NO_HZ
 
 extern void rcu_enter_nohz(void);
diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h
index 42cc3a0..3be62e1 100644
--- a/include/linux/rcutree.h
+++ b/include/linux/rcutree.h
@@ -30,8 +30,6 @@
 #ifndef __LINUX_RCUTREE_H
 #define __LINUX_RCUTREE_H
 
-struct notifier_block;
-
 extern void rcu_sched_qs(int cpu);
 extern void rcu_bh_qs(int cpu);
 extern int rcu_needs_cpu(int cpu);

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

* Re: [PATCH] rcu: remove needless struct notifier_block predeclaration
  2010-03-29  2:33 [PATCH] rcu: remove needless struct notifier_block predeclaration Lai Jiangshan
@ 2010-03-29  4:44 ` Paul E. McKenney
  0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2010-03-29  4:44 UTC (permalink / raw)
  To: Lai Jiangshan; +Cc: Ingo Molnar, LKML

On Mon, Mar 29, 2010 at 10:33:38AM +0800, Lai Jiangshan wrote:
> 
> cleanup: remove needless struct notifier_block predeclaration 

Good catch!

These forward declarations used to be essential.  ;-)

If they have been made available on purpose, I am all for applying
this patch.  But if their appearance is accidental, perhaps to
disappear again in the next release, I would keep the forward
declarations.

Could you please check?

						Thanx, Paul

> diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h
> index a519587..ae7b05e 100644
> --- a/include/linux/rcutiny.h
> +++ b/include/linux/rcutiny.h
> @@ -86,8 +86,6 @@ static inline void synchronize_rcu_bh_expedited(void)
>  	synchronize_sched();
>  }
> 
> -struct notifier_block;
> -
>  #ifdef CONFIG_NO_HZ
> 
>  extern void rcu_enter_nohz(void);
> diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h
> index 42cc3a0..3be62e1 100644
> --- a/include/linux/rcutree.h
> +++ b/include/linux/rcutree.h
> @@ -30,8 +30,6 @@
>  #ifndef __LINUX_RCUTREE_H
>  #define __LINUX_RCUTREE_H
> 
> -struct notifier_block;
> -
>  extern void rcu_sched_qs(int cpu);
>  extern void rcu_bh_qs(int cpu);
>  extern int rcu_needs_cpu(int cpu);
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

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

end of thread, other threads:[~2010-03-29  4:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-29  2:33 [PATCH] rcu: remove needless struct notifier_block predeclaration Lai Jiangshan
2010-03-29  4:44 ` 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