Message ID | 20160301165650.GN3577@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
On Tue, Mar 01, 2016 at 08:56:50AM -0800, Paul E. McKenney wrote: > +++ b/kernel/rcu/rcutorture.c > @@ -131,9 +131,9 @@ 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 }; > + rcu_torture_count); So the problem I was fixing is that the ctags regex needs the second argument for the DEFINE_PER_CPU() macro on the same line. So it would still need to be: 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) = { 0 }; > + 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; > -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 1c2dc23ae07d..f5fd9acc0f9b 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -131,9 +131,9 @@ 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 }; + rcu_torture_count); static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], - rcu_torture_batch) = { 0 }; + 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;