* [PATCH] net: rds: fix const array syntax
@ 2011-07-01 22:50 Greg Dietsche
2011-07-01 23:12 ` Greg Dietsche
2011-07-01 23:16 ` David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Greg Dietsche @ 2011-07-01 22:50 UTC (permalink / raw)
To: andy.grover; +Cc: davem, netdev, rds-devel, kernel-janitors, Greg Dietsche
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",
--
1.7.2.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] net: rds: fix const array syntax
2011-07-01 22:50 [PATCH] net: rds: fix const array syntax Greg Dietsche
@ 2011-07-01 23:12 ` Greg Dietsche
2011-07-01 23:15 ` David Miller
2011-07-01 23:16 ` David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Greg Dietsche @ 2011-07-01 23:12 UTC (permalink / raw)
To: Greg Dietsche; +Cc: andy.grover, davem, netdev, rds-devel, kernel-janitors
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net: rds: fix const array syntax
2011-07-01 23:12 ` Greg Dietsche
@ 2011-07-01 23:15 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2011-07-01 23:15 UTC (permalink / raw)
To: gregory.dietsche; +Cc: andy.grover, netdev, rds-devel, kernel-janitors
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net: rds: fix const array syntax
2011-07-01 22:50 [PATCH] net: rds: fix const array syntax Greg Dietsche
2011-07-01 23:12 ` Greg Dietsche
@ 2011-07-01 23:16 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2011-07-01 23:16 UTC (permalink / raw)
To: Gregory.Dietsche; +Cc: andy.grover, netdev, rds-devel, kernel-janitors
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-07-01 23:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-01 22:50 [PATCH] net: rds: fix const array syntax Greg Dietsche
2011-07-01 23:12 ` Greg Dietsche
2011-07-01 23:15 ` David Miller
2011-07-01 23:16 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).