浏览代码

gianfar: constify giant block of status descriptor strings

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Paul Gortmaker 14 年之前
父节点
当前提交
30f7e31066
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/net/ethernet/freescale/gianfar_ethtool.c

+ 1 - 1
drivers/net/ethernet/freescale/gianfar_ethtool.c

@@ -58,7 +58,7 @@ static void gfar_gringparam(struct net_device *dev, struct ethtool_ringparam *rv
 static int gfar_sringparam(struct net_device *dev, struct ethtool_ringparam *rvals);
 static int gfar_sringparam(struct net_device *dev, struct ethtool_ringparam *rvals);
 static void gfar_gdrvinfo(struct net_device *dev, struct ethtool_drvinfo *drvinfo);
 static void gfar_gdrvinfo(struct net_device *dev, struct ethtool_drvinfo *drvinfo);
 
 
-static char stat_gstrings[][ETH_GSTRING_LEN] = {
+static const char stat_gstrings[][ETH_GSTRING_LEN] = {
 	"rx-dropped-by-kernel",
 	"rx-dropped-by-kernel",
 	"rx-large-frame-errors",
 	"rx-large-frame-errors",
 	"rx-short-frame-errors",
 	"rx-short-frame-errors",