From: Stephen Hemminger <shemminger@vyatta•com>
To: Rasesh Mody <rmody@brocade•com>
Cc: netdev@vger•kernel.org
Subject: [PATCH 1/2] bna: make ethtool_ops and strings const
Date: Wed, 04 Jan 2012 15:02:23 -0800 [thread overview]
Message-ID: <20120104230239.002499460@vyatta.com> (raw)
In-Reply-To: 20120104230222.355802239@vyatta.com
[-- Attachment #1: bna-ethtool-ops.patch --]
[-- Type: text/plain, Size: 813 bytes --]
Signed-off-by: Stephen Hemminger <shemminger@vyatta•com>
--- a/drivers/net/ethernet/brocade/bna/bnad_ethtool.c 2011-12-23 21:06:15.724436897 -0800
+++ b/drivers/net/ethernet/brocade/bna/bnad_ethtool.c 2012-01-04 14:22:02.403250833 -0800
@@ -38,7 +38,7 @@
sizeof(struct bnad_drv_stats) / sizeof(u64) + \
offsetof(struct bfi_enet_stats, rxf_stats[0]) / sizeof(u64))
-static char *bnad_net_stats_strings[BNAD_ETHTOOL_STATS_NUM] = {
+static const char *bnad_net_stats_strings[BNAD_ETHTOOL_STATS_NUM] = {
"rx_packets",
"tx_packets",
"rx_bytes",
@@ -1072,7 +1072,7 @@ done:
return ret;
}
-static struct ethtool_ops bnad_ethtool_ops = {
+static const struct ethtool_ops bnad_ethtool_ops = {
.get_settings = bnad_get_settings,
.set_settings = bnad_set_settings,
.get_drvinfo = bnad_get_drvinfo,
next parent reply other threads:[~2012-01-04 23:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20120104230222.355802239@vyatta.com>
2012-01-04 23:02 ` Stephen Hemminger [this message]
2012-01-05 18:23 ` [PATCH 1/2] bna: make ethtool_ops and strings const David Miller
2012-01-05 18:28 ` Rasesh Mody
2012-01-04 23:02 ` [PATCH 2/2] bna: fix sparse warnings/errors Stephen Hemminger
2012-01-05 18:23 ` 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=20120104230239.002499460@vyatta.com \
--to=shemminger@vyatta$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=rmody@brocade$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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