]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbe: Fix compiler warnings
authorGreg Rose <gregory.v.rose@intel.com>
Fri, 21 Oct 2011 07:55:15 +0000 (07:55 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:23:23 +0000 (22:23 +0800)
Wrap SR-IOV specific functions in CONFIG_PCI_IOV to avoid compiler
warnings.

(cherry picked from commit 9487dc844054e1fc691fb82f4e19da337e2ca35e)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_sriov.h

index 278184757b690dfe6e36965889ecdcdbfcb54f4e..7892890deefca817032e34206bcb70ca75e6c885 100644 (file)
@@ -41,10 +41,12 @@ int ixgbe_ndo_set_vf_bw(struct net_device *netdev, int vf, int tx_rate);
 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);
 void ixgbe_enable_sriov(struct ixgbe_adapter *adapter,
                        const struct ixgbe_info *ii);
 int ixgbe_check_vf_assignment(struct ixgbe_adapter *adapter);
+#endif
 
 
 #endif /* _IXGBE_SRIOV_H_ */