Skip to content

Commit

Permalink
bnx2x: Change bnx2x_tests_str_arr to static char
Browse files Browse the repository at this point in the history
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
cf2c1df.

Signed-off-by: Merav Sicron <[email protected]>
Signed-off-by: Eilon Greenstein <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Merav Sicron authored and davem330 committed Jun 27, 2012
1 parent 2e499d3 commit ebe6e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
Original file line number Diff line number Diff line change
@@ -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)",

0 comments on commit ebe6e21

Please sign in to comment.