ixgbevf: fix sparse warnings
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>
This commit is contained in:
committed by
David S. Miller
parent
b47aca135d
commit
b5417bf8e8
@@ -281,7 +281,7 @@ enum ixgbevf_boards {
|
|||||||
|
|
||||||
extern struct ixgbevf_info ixgbevf_82599_vf_info;
|
extern struct ixgbevf_info ixgbevf_82599_vf_info;
|
||||||
extern struct ixgbevf_info ixgbevf_X540_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 */
|
/* needed by ethtool.c */
|
||||||
extern char ixgbevf_driver_name[];
|
extern char ixgbevf_driver_name[];
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "mbx.h"
|
#include "mbx.h"
|
||||||
|
#include "ixgbevf.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ixgbevf_poll_for_msg - Wait for message notification
|
* ixgbevf_poll_for_msg - Wait for message notification
|
||||||
@@ -328,7 +329,7 @@ static s32 ixgbevf_init_mbx_params_vf(struct ixgbe_hw *hw)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ixgbe_mbx_operations ixgbevf_mbx_ops = {
|
const struct ixgbe_mbx_operations ixgbevf_mbx_ops = {
|
||||||
.init_params = ixgbevf_init_mbx_params_vf,
|
.init_params = ixgbevf_init_mbx_params_vf,
|
||||||
.read = ixgbevf_read_mbx_vf,
|
.read = ixgbevf_read_mbx_vf,
|
||||||
.write = ixgbevf_write_mbx_vf,
|
.write = ixgbevf_write_mbx_vf,
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "vf.h"
|
#include "vf.h"
|
||||||
|
#include "ixgbevf.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ixgbevf_start_hw_vf - Prepare hardware for Tx/Rx
|
* ixgbevf_start_hw_vf - Prepare hardware for Tx/Rx
|
||||||
|
Reference in New Issue
Block a user