From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Dietsche Subject: Re: [PATCH] net: rds: fix const array syntax Date: Fri, 01 Jul 2011 18:12:43 -0500 Message-ID: <4E0E546B.3000106@cuw.edu> References: <1309560635-17514-1-git-send-email-Gregory.Dietsche@cuw.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: andy.grover@oracle.com, davem@davemloft.net, netdev@vger.kernel.org, rds-devel@oss.oracle.com, kernel-janitors@vger.kernel.org To: Greg Dietsche Return-path: Received: from que11.charter.net ([209.225.8.21]:48985 "EHLO que11.charter.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757689Ab1GAXUs (ORCPT ); Fri, 1 Jul 2011 19:20:48 -0400 In-Reply-To: <1309560635-17514-1-git-send-email-Gregory.Dietsche@cuw.edu> Sender: netdev-owner@vger.kernel.org List-ID: On 07/01/2011 05:50 PM, Greg Dietsche wrote: > Correct the syntax so that both array and pointer are const. > > Signed-off-by: Greg Dietsche > --- > net/rds/tcp_stats.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/net/rds/tcp_stats.c b/net/rds/tcp_stats.c > index d5898d0..f8a7954 100644 > --- a/net/rds/tcp_stats.c > +++ b/net/rds/tcp_stats.c > @@ -40,7 +40,7 @@ > DEFINE_PER_CPU(struct rds_tcp_statistics, rds_tcp_stats) > ____cacheline_aligned; > > -static const char const *rds_tcp_stat_names[] = { > +static const char * const rds_tcp_stat_names[] = { > "tcp_data_ready_calls", > "tcp_write_space_calls", > "tcp_sndbuf_full", > Andy's email is bouncing (Recipient unknown)... if someone else could pick this up, that'd be great! Greg