Linux-Next discussions
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: netdev@vger.kernel.org
Cc: Anil Murthy <anil.murthy@neterion.com>,
	Sreenivasa Honnur <sreenivasa.honnur@neterion.com>,
	Sivakumar Subramani <sivakumar.subramani@neterion.com>,
	Rastapur Santosh <santosh.rastapur@neterion.com>,
	Ramkrishna Vepa <ram.vepa@neterion.com>,
	"David S. Miller" <davem@davemloft.net>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-next@vger.kernel.org
Subject: [PATCH 1/9] s2io.c: Use const for strings
Date: Mon, 24 Aug 2009 20:29:40 -0700	[thread overview]
Message-ID: <ae3194c10741ca46f510031718b70ea40e7a76ff.1251170438.git.joe@perches.com> (raw)
In-Reply-To: <cover.1251170438.git.joe@perches.com>

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/net/s2io.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c
index bd6d713..07e95e9 100644
--- a/drivers/net/s2io.c
+++ b/drivers/net/s2io.c
@@ -125,7 +125,7 @@ static inline int is_s2io_card_up(const struct s2io_nic * sp)
 }
 
 /* Ethtool related variables and Macros. */
-static char s2io_gstrings[][ETH_GSTRING_LEN] = {
+static const char s2io_gstrings[][ETH_GSTRING_LEN] = {
 	"Register test\t(offline)",
 	"Eeprom test\t(offline)",
 	"Link test\t(online)",
@@ -133,7 +133,7 @@ static char s2io_gstrings[][ETH_GSTRING_LEN] = {
 	"BIST Test\t(offline)"
 };
 
-static char ethtool_xena_stats_keys[][ETH_GSTRING_LEN] = {
+static const char ethtool_xena_stats_keys[][ETH_GSTRING_LEN] = {
 	{"tmac_frms"},
 	{"tmac_data_octets"},
 	{"tmac_drop_frms"},
@@ -230,7 +230,7 @@ static char ethtool_xena_stats_keys[][ETH_GSTRING_LEN] = {
 	{"rxf_wr_cnt"}
 };
 
-static char ethtool_enhanced_stats_keys[][ETH_GSTRING_LEN] = {
+static const char ethtool_enhanced_stats_keys[][ETH_GSTRING_LEN] = {
 	{"rmac_ttl_1519_4095_frms"},
 	{"rmac_ttl_4096_8191_frms"},
 	{"rmac_ttl_8192_max_frms"},
@@ -249,7 +249,7 @@ static char ethtool_enhanced_stats_keys[][ETH_GSTRING_LEN] = {
 	{"link_fault_cnt"}
 };
 
-static char ethtool_driver_stats_keys[][ETH_GSTRING_LEN] = {
+static const char ethtool_driver_stats_keys[][ETH_GSTRING_LEN] = {
 	{"\n DRIVER STATISTICS"},
 	{"single_bit_ecc_errs"},
 	{"double_bit_ecc_errs"},
-- 
1.6.3.1.10.g659a0.dirty


  reply	other threads:[~2009-08-25  3:29 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-25  3:29 [PATCH 0/9] drivers/net/s2io.c: Cleanups Joe Perches
2009-08-25  3:29 ` Joe Perches [this message]
2009-08-25  3:29 ` [PATCH 2/9] s2io.c: Shorten code line length by using intermediate pointers Joe Perches
2009-08-25  3:29 ` [PATCH 3/9] s2io.c: Use calculated size in kmallocs Joe Perches
2009-08-25  3:29 ` [PATCH 4/9] s2io.c: use kzalloc Joe Perches
2009-08-25  3:29 ` [PATCH 5/9] s2io.c: Make more conforming to normal kernel style Joe Perches
2009-08-25  3:29 ` [PATCH 6/9] s2io.c: convert printks to pr_<level> Joe Perches
2009-08-25  3:29 ` [PATCH 7/9] s2io.c: fix spelling explaination Joe Perches
2009-08-25  3:29 ` [PATCH 8/9] s2io.c: Standardize statistics accessors Joe Perches
2009-08-25  3:29 ` [PATCH 9/9] s2io.c: Convert skipped nic->config.tx_cfg[i]. to tx_cfg-> Joe Perches
2009-08-25 18:52 ` [PATCH 10/9] s2io: Generate complete messages using single line DBG_PRINTs Joe Perches
2009-08-26 22:33 ` [PATCH 0/9] drivers/net/s2io.c: Cleanups David Miller
2009-08-26 22:47   ` Joe Perches
2009-08-27  2:45     ` Ramkrishna Vepa
2009-08-31  5:21     ` Sreenivasa Honnur
2009-08-31  5:35       ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ae3194c10741ca46f510031718b70ea40e7a76ff.1251170438.git.joe@perches.com \
    --to=joe@perches.com \
    --cc=akpm@linux-foundation.org \
    --cc=anil.murthy@neterion.com \
    --cc=davem@davemloft.net \
    --cc=linux-next@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=ram.vepa@neterion.com \
    --cc=santosh.rastapur@neterion.com \
    --cc=sivakumar.subramani@neterion.com \
    --cc=sreenivasa.honnur@neterion.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox