diff options
author | Rose, Gregory V <gregory.v.rose@intel.com> | 2011-11-07 07:44:17 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-07 13:23:12 -0500 |
commit | 012641082b34433dac3cbb452e0a6ceccfd4643f (patch) | |
tree | b5fcc89c44d5508f5c669d50e2d879910618ab24 /drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h | |
parent | 1a6422f67fbf691cf8721076619aeead9183403d (diff) | |
download | op-kernel-dev-012641082b34433dac3cbb452e0a6ceccfd4643f.zip op-kernel-dev-012641082b34433dac3cbb452e0a6ceccfd4643f.tar.gz |
ixgbe: Fix compile for kernel without CONFIG_PCI_IOV defined
Fix compiler errors and warnings with CONFIG_PCI_IOV defined and not
defined.
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h index 4a5d889..df04f1a 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h @@ -42,11 +42,11 @@ int ixgbe_ndo_set_vf_spoofchk(struct net_device *netdev, int vf, bool setting); int ixgbe_ndo_get_vf_config(struct net_device *netdev, int vf, struct ifla_vf_info *ivi); void ixgbe_check_vf_rate_limit(struct ixgbe_adapter *adapter); -#ifdef CONFIG_PCI_IOV void ixgbe_disable_sriov(struct ixgbe_adapter *adapter); +int ixgbe_check_vf_assignment(struct ixgbe_adapter *adapter); +#ifdef CONFIG_PCI_IOV void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, const struct ixgbe_info *ii); -int ixgbe_check_vf_assignment(struct ixgbe_adapter *adapter); #endif |