From: stephen hemminger Date: Wed, 4 Jan 2012 13:02:23 +0000 (+0000) Subject: bna: make ethtool_ops and strings const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=975419cf01fc6997879196d1c8f5ebffd30d3b20;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git bna: make ethtool_ops and strings const Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/brocade/bna/bnad_ethtool.c b/drivers/net/ethernet/brocade/bna/bnad_ethtool.c index 5f7be5ac32a1..9b44ec8096ba 100644 --- a/drivers/net/ethernet/brocade/bna/bnad_ethtool.c +++ b/drivers/net/ethernet/brocade/bna/bnad_ethtool.c @@ -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,