From: Greg Rose Date: Fri, 21 Oct 2011 07:55:15 +0000 (+0000) Subject: ixgbe: Fix compiler warnings X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~142 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=20dbb3035b430430798078381573bec747258023;p=users%2Fjedix%2Flinux-maple.git ixgbe: Fix compiler warnings Wrap SR-IOV specific functions in CONFIG_PCI_IOV to avoid compiler warnings. (cherry picked from commit 9487dc844054e1fc691fb82f4e19da337e2ca35e) Signed-off-by: Greg Rose Tested-by: Sibai Li Signed-off-by: Jeff Kirsher Signed-off-by: Joe Jin --- diff --git a/drivers/net/ixgbe/ixgbe_sriov.h b/drivers/net/ixgbe/ixgbe_sriov.h index 278184757b690..7892890deefca 100644 --- a/drivers/net/ixgbe/ixgbe_sriov.h +++ b/drivers/net/ixgbe/ixgbe_sriov.h @@ -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_ */