]> git.karo-electronics.de Git - linux-beck.git/commitdiff
bnx2x: Change bnx2x_tests_str_arr to static char
authorMerav Sicron <meravs@broadcom.com>
Tue, 26 Jun 2012 06:11:03 +0000 (06:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Jun 2012 08:20:13 +0000 (01:20 -0700)
This patch changes the definition of bnx2x_tests_str_arr from char to static
char. This correction will also eliminate the sparse warning created in commit
cf2c1df62e065bfc15e38daf2d3479a56b320f29.

Signed-off-by: Merav Sicron <meravs@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c

index 1f8c1561cdec98cd5eb3d721386f507b9625d4c3..bff31290198b928748220ddb57a153a0fd17c98c 100644 (file)
@@ -1600,7 +1600,7 @@ static int bnx2x_set_pauseparam(struct net_device *dev,
        return 0;
 }
 
-char *bnx2x_tests_str_arr[BNX2X_NUM_TESTS_SF] = {
+static char *bnx2x_tests_str_arr[BNX2X_NUM_TESTS_SF] = {
        "register_test (offline)    ",
        "memory_test (offline)      ",
        "int_loopback_test (offline)",