diff options
author | Greg Rose <gregory.v.rose@intel.com> | 2011-10-21 03:55:15 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-11-02 19:55:39 -0400 |
commit | 9487dc844054e1fc691fb82f4e19da337e2ca35e (patch) | |
tree | 55fc2c909e4dff6de20eb1dcb4d40a0e0bffe66c /drivers/net/ethernet | |
parent | b120818e652965669d3f1abaeaa5c3ccdfb28126 (diff) |
ixgbe: Fix compiler warnings
Wrap SR-IOV specific functions in CONFIG_PCI_IOV to avoid compiler
warnings.
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h index 5a7e1eb33599..4a5d8897faab 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h | |||
@@ -42,10 +42,12 @@ int ixgbe_ndo_set_vf_spoofchk(struct net_device *netdev, int vf, bool setting); | |||
42 | int ixgbe_ndo_get_vf_config(struct net_device *netdev, | 42 | int ixgbe_ndo_get_vf_config(struct net_device *netdev, |
43 | int vf, struct ifla_vf_info *ivi); | 43 | int vf, struct ifla_vf_info *ivi); |
44 | void ixgbe_check_vf_rate_limit(struct ixgbe_adapter *adapter); | 44 | void ixgbe_check_vf_rate_limit(struct ixgbe_adapter *adapter); |
45 | #ifdef CONFIG_PCI_IOV | ||
45 | void ixgbe_disable_sriov(struct ixgbe_adapter *adapter); | 46 | void ixgbe_disable_sriov(struct ixgbe_adapter *adapter); |
46 | void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, | 47 | void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, |
47 | const struct ixgbe_info *ii); | 48 | const struct ixgbe_info *ii); |
48 | int ixgbe_check_vf_assignment(struct ixgbe_adapter *adapter); | 49 | int ixgbe_check_vf_assignment(struct ixgbe_adapter *adapter); |
50 | #endif | ||
49 | 51 | ||
50 | 52 | ||
51 | #endif /* _IXGBE_SRIOV_H_ */ | 53 | #endif /* _IXGBE_SRIOV_H_ */ |