diff mbox

net: rds: fix const array syntax

Message ID 1309560635-17514-1-git-send-email-Gregory.Dietsche@cuw.edu
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Greg Dietsche July 1, 2011, 10:50 p.m. UTC
Correct the syntax so that both array and pointer are const.

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
---
 net/rds/tcp_stats.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Greg Dietsche July 1, 2011, 11:12 p.m. UTC | #1
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<Gregory.Dietsche@cuw.edu>
> ---
>   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

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller July 1, 2011, 11:15 p.m. UTC | #2
From: Greg Dietsche <gregory.dietsche@cuw.edu>
Date: Fri, 01 Jul 2011 18:12:43 -0500

> 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<Gregory.Dietsche@cuw.edu>
>> ---
>>   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!

I'll take care of it.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller July 1, 2011, 11:16 p.m. UTC | #3
From: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Date: Fri,  1 Jul 2011 17:50:35 -0500

> Correct the syntax so that both array and pointer are const.
> 
> Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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",