Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1376958 > unrolled thread

[PATCH tip/core/rcu 15/24] rcutorture: Remove redundant initialization to zero

Started by"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
First post2016-04-12 17:50 +0200
Last post2016-04-12 17:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH tip/core/rcu 15/24] rcutorture: Remove redundant initialization to zero "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-04-12 17:50 +0200

#1376958 — [PATCH tip/core/rcu 15/24] rcutorture: Remove redundant initialization to zero

From"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Date2016-04-12 17:50 +0200
Subject[PATCH tip/core/rcu 15/24] rcutorture: Remove redundant initialization to zero
Message-ID<rn8JJ-1i4-43@gated-at.bofh.it>
The current code initializes the global per-CPU variables
rcu_torture_count and rcu_torture_batch to zero.  However, C does this
initialization by default, and explicit initialization of per-CPU
variables now needs a different syntax if "make tags" is to work.
This commit therefore removes the initialization.

Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
---
 kernel/rcu/rcutorture.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c
index 9234e75b106a..52b49fe90919 100644
--- a/kernel/rcu/rcutorture.c
+++ b/kernel/rcu/rcutorture.c
@@ -130,8 +130,8 @@ static struct rcu_torture __rcu *rcu_torture_current;
 static unsigned long rcu_torture_current_version;
 static struct rcu_torture rcu_tortures[10 * RCU_TORTURE_PIPE_LEN];
 static DEFINE_SPINLOCK(rcu_torture_lock);
-static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_count) = { 0 };
-static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_batch) = { 0 };
+static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_count);
+static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_batch);
 static atomic_t rcu_torture_wcount[RCU_TORTURE_PIPE_LEN + 1];
 static atomic_t n_rcu_torture_alloc;
 static atomic_t n_rcu_torture_alloc_fail;
-- 
2.5.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web