diff mbox

[1/2] bna: make ethtool_ops and strings const

Message ID 20120104230239.002499460@vyatta.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

stephen hemminger Jan. 4, 2012, 11:02 p.m. UTC
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>




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

Comments

David Miller Jan. 5, 2012, 6:23 p.m. UTC | #1
From: Stephen Hemminger <shemminger@vyatta.com>
Date: Wed, 04 Jan 2012 15:02:23 -0800

> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

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
Rasesh Mody Jan. 5, 2012, 6:28 p.m. UTC | #2
>From: David Miller [mailto:davem@davemloft.net]
>Sent: Thursday, January 05, 2012 10:24 AM
>
>From: Stephen Hemminger <shemminger@vyatta.com>
>Date: Wed, 04 Jan 2012 15:02:23 -0800
>
>> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
>
>Applied.

Thanks Stephen, David!
--Rasesh
--
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

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