Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1347040
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC][PATCH] tags: Fix DEFINE_PER_CPU expansions |
| Date | 2016-03-01 22:40 +0100 |
| Message-ID | <r80bp-6s3-39@gated-at.bofh.it> (permalink) |
| References | <r7PJ0-7P6-13@gated-at.bofh.it> <r7Y9B-53m-41@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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;
>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC][PATCH] tags: Fix DEFINE_PER_CPU expansions Peter Zijlstra <peterz@infradead.org> - 2016-03-01 11:30 +0100
Re: [RFC][PATCH] tags: Fix DEFINE_PER_CPU expansions David Miller <davem@davemloft.net> - 2016-03-01 17:40 +0100
Re: [RFC][PATCH] tags: Fix DEFINE_PER_CPU expansions Tejun Heo <tj@kernel.org> - 2016-03-01 17:40 +0100
Re: [RFC][PATCH] tags: Fix DEFINE_PER_CPU expansions Peter Zijlstra <peterz@infradead.org> - 2016-03-01 19:20 +0100
Re: [RFC][PATCH] tags: Fix DEFINE_PER_CPU expansions Tejun Heo <tj@kernel.org> - 2016-03-01 20:00 +0100
Re: [RFC][PATCH] tags: Fix DEFINE_PER_CPU expansions "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-03-01 20:30 +0100
Re: [RFC][PATCH] tags: Fix DEFINE_PER_CPU expansions Peter Zijlstra <peterz@infradead.org> - 2016-03-01 22:40 +0100
Re: [RFC][PATCH] tags: Fix DEFINE_PER_CPU expansions "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-03-01 23:10 +0100
Re: [RFC][PATCH] tags: Fix DEFINE_PER_CPU expansions "Rafael J. Wysocki" <rafael@kernel.org> - 2016-03-01 22:40 +0100
csiph-web