diff mbox

[1/6] remove unused srcu_barrier()

Message ID 1331027858-7648-1-git-send-email-laijs@cn.fujitsu.com
State Accepted
Commit 966f58c2f6df826f385706673a9bb1edcfd3499a
Headers show

Commit Message

Lai Jiangshan March 6, 2012, 9:57 a.m. UTC
srcu_barrier() is unused now.
This identifier is need for later.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---
 include/linux/srcu.h |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

Comments

Paul E. McKenney March 8, 2012, 7:03 p.m. UTC | #1
On Tue, Mar 06, 2012 at 05:57:33PM +0800, Lai Jiangshan wrote:
> srcu_barrier() is unused now.
> This identifier is need for later.
> 
> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>

Queued, thank you!

							Thanx, Paul

> ---
>  include/linux/srcu.h |    6 ------
>  1 files changed, 0 insertions(+), 6 deletions(-)
> 
> diff --git a/include/linux/srcu.h b/include/linux/srcu.h
> index 5b49d41..df8f5f7 100644
> --- a/include/linux/srcu.h
> +++ b/include/linux/srcu.h
> @@ -49,12 +49,6 @@ struct srcu_struct {
>  #endif /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */
>  };
> 
> -#ifndef CONFIG_PREEMPT
> -#define srcu_barrier() barrier()
> -#else /* #ifndef CONFIG_PREEMPT */
> -#define srcu_barrier()
> -#endif /* #else #ifndef CONFIG_PREEMPT */
> -
>  #ifdef CONFIG_DEBUG_LOCK_ALLOC
> 
>  int __init_srcu_struct(struct srcu_struct *sp, const char *name,
> -- 
> 1.7.4.4
>
diff mbox

Patch

diff --git a/include/linux/srcu.h b/include/linux/srcu.h
index 5b49d41..df8f5f7 100644
--- a/include/linux/srcu.h
+++ b/include/linux/srcu.h
@@ -49,12 +49,6 @@  struct srcu_struct {
 #endif /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */
 };
 
-#ifndef CONFIG_PREEMPT
-#define srcu_barrier() barrier()
-#else /* #ifndef CONFIG_PREEMPT */
-#define srcu_barrier()
-#endif /* #else #ifndef CONFIG_PREEMPT */
-
 #ifdef CONFIG_DEBUG_LOCK_ALLOC
 
 int __init_srcu_struct(struct srcu_struct *sp, const char *name,