diff options
author | Lad, Prabhakar <prabhakar.csengg@gmail.com> | 2015-02-05 18:20:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-06 03:03:27 +0300 |
commit | 4a95b6d0a73e6ca38211e751b982a9665e108ff5 (patch) | |
tree | 76a24917ffbf79a9687bb700beda2e2754db05c9 /drivers/net/ethernet | |
parent | da19fcd0d85f36420f578fe6dfe7a2a581b4fa6e (diff) | |
download | linux-4a95b6d0a73e6ca38211e751b982a9665e108ff5.tar.xz |
chelsio: cxgb4: fix sparse warning
this patch fixes following sparse warning:
cxgb4_dcb.c:25:6: warning: symbol 'dcb_ver_array' was not declared. Should it be static?
Alongside making it const.
Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c index b65a5bda3195..6074680bc985 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c @@ -22,7 +22,7 @@ /* DCBx version control */ -char *dcb_ver_array[] = { +static const char * const dcb_ver_array[] = { "Unknown", "DCBx-CIN", "DCBx-CEE 1.01", |