chelsio: cxgb4: fix sparse warning
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Thu, 5 Feb 2015 15:20:09 +0000 (15:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Feb 2015 00:03:27 +0000 (16:03 -0800)
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>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c

index b65a5bda31958e0d31ddc89259143caa9bfa3e87..6074680bc9858308fa68887140856c8bb05b4d6a 100644 (file)
@@ -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",