Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1301111
| From | "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] kernel: rcu: tree: Remove useless rcu_data_p when !PREEMPT_RCU |
| Date | 2016-01-04 22:30 +0100 |
| Message-ID | <qNkRt-vJ-13@gated-at.bofh.it> (permalink) |
| References | <qJXom-1yT-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sat, Dec 26, 2015 at 09:41:44PM +0800, chengang@emindsoft.com.cn wrote: > From: Chen Gang <chengang@emindsoft.com.cn> > > The related warning from gcc 6.0: > > In file included from kernel/rcu/tree.c:4630:0: > kernel/rcu/tree_plugin.h:810:40: warning: ‘rcu_data_p’ defined but not used [-Wunused-const-variable] > static struct rcu_data __percpu *const rcu_data_p = &rcu_sched_data; > ^~~~~~~~~~ > > Also remove always redundant rcu_data_p in tree.c. > > Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Queued for review and testing, thank you! Thanx, Paul > --- > kernel/rcu/tree.c | 1 - > kernel/rcu/tree_plugin.h | 1 - > 2 files changed, 2 deletions(-) > > diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c > index 3a8856f..ed85d66 100644 > --- a/kernel/rcu/tree.c > +++ b/kernel/rcu/tree.c > @@ -108,7 +108,6 @@ RCU_STATE_INITIALIZER(rcu_sched, 's', call_rcu_sched); > RCU_STATE_INITIALIZER(rcu_bh, 'b', call_rcu_bh); > > static struct rcu_state *const rcu_state_p; > -static struct rcu_data __percpu *const rcu_data_p; > LIST_HEAD(rcu_struct_flavors); > > /* Dump rcu_node combining tree at boot to verify correct setup. */ > diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h > index 9467a8b..e6b88ad 100644 > --- a/kernel/rcu/tree_plugin.h > +++ b/kernel/rcu/tree_plugin.h > @@ -807,7 +807,6 @@ void exit_rcu(void) > #else /* #ifdef CONFIG_PREEMPT_RCU */ > > static struct rcu_state *const rcu_state_p = &rcu_sched_state; > -static struct rcu_data __percpu *const rcu_data_p = &rcu_sched_data; > > /* > * Tell them what RCU they are running. > -- > 1.9.3 > -- 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/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH] kernel: rcu: tree: Remove useless rcu_data_p when !PREEMPT_RCU "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-01-04 22:30 +0100
csiph-web