Skip to content

Commit

Permalink
ixgbevf: fix sparse warnings
Browse files Browse the repository at this point in the history
Fixes sparse warnings:
drivers/net/ethernet/intel/ixgbevf/vf.c:418:21: warning: symbol 'ixgbevf_82599_vf_info' was not declared. Should it be static?
drivers/net/ethernet/intel/ixgbevf/vf.c:423:21: warning: symbol 'ixgbevf_X540_vf_info' was not declared. Should it be static?
drivers/net/ethernet/intel/ixgbevf/mbx.c:331:29: warning: symbol 'ixgbevf_mbx_ops' was not declared. Should it be static?

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 19, 2012
1 parent b47aca1 commit b5417bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ enum ixgbevf_boards {

extern struct ixgbevf_info ixgbevf_82599_vf_info;
extern struct ixgbevf_info ixgbevf_X540_vf_info;
extern struct ixgbe_mbx_operations ixgbevf_mbx_ops;
extern const struct ixgbe_mbx_operations ixgbevf_mbx_ops;

/* needed by ethtool.c */
extern char ixgbevf_driver_name[];
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/ethernet/intel/ixgbevf/mbx.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*******************************************************************************/

#include "mbx.h"
#include "ixgbevf.h"

/**
* ixgbevf_poll_for_msg - Wait for message notification
Expand Down Expand Up @@ -328,7 +329,7 @@ static s32 ixgbevf_init_mbx_params_vf(struct ixgbe_hw *hw)
return 0;
}

struct ixgbe_mbx_operations ixgbevf_mbx_ops = {
const struct ixgbe_mbx_operations ixgbevf_mbx_ops = {
.init_params = ixgbevf_init_mbx_params_vf,
.read = ixgbevf_read_mbx_vf,
.write = ixgbevf_write_mbx_vf,
Expand Down
1 change: 1 addition & 0 deletions drivers/net/ethernet/intel/ixgbevf/vf.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*******************************************************************************/

#include "vf.h"
#include "ixgbevf.h"

/**
* ixgbevf_start_hw_vf - Prepare hardware for Tx/Rx
Expand Down

0 comments on commit b5417bf

Please sign in to comment.