[PATCH] net: rds: fix const array syntax

Subsystems: networking [general], rds - reliable datagram sockets, the rest

STALE5512d

4 messages, 2 authors, 2011-07-01 · open the first message on its own page

[PATCH] net: rds: fix const array syntax

From: Greg Dietsche <hidden>
Date: 2011-07-01 22:52:44

Correct the syntax so that both array and pointer are const.

Signed-off-by: Greg Dietsche <redacted>
---
 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

Re: [PATCH] net: rds: fix const array syntax

From: David Miller <davem@davemloft.net>
Date: 2011-07-01 23:15:37

From: Greg Dietsche <redacted>
Date: Fri, 01 Jul 2011 18:12:43 -0500
On 07/01/2011 05:50 PM, Greg Dietsche wrote:
quoted
Correct the syntax so that both array and pointer are const.

Signed-off-by: Greg Dietsche<redacted>
---
  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.

Re: [PATCH] net: rds: fix const array syntax

From: David Miller <davem@davemloft.net>
Date: 2011-07-01 23:16:32

From: Greg Dietsche <redacted>
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 <redacted>
Applied.

Re: [PATCH] net: rds: fix const array syntax

From: Greg Dietsche <hidden>
Date: 2011-07-01 23:20:48

On 07/01/2011 05:50 PM, Greg Dietsche wrote:
quoted hunk
Correct the syntax so that both array and pointer are const.

Signed-off-by: Greg Dietsche<redacted>
---
  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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help