aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorRongQing Li <roy.qing.li@gmail.com>2011-10-18 18:52:35 -0400
committerDavid S. Miller <davem@davemloft.net>2011-10-20 17:09:40 -0400
commit46a016985a442b499faa52dff7e74a79f6a22cef (patch)
treee0d0634609b6034fe2f8170305e5a8d613290dcc /drivers/net
parent924a4c7d2e962b4e6a8e9ab3aabfd2bb29e5ada9 (diff)
igb: fix a compile warning
control these three function declarations and definitions with same macro CONFIG_PCI_IOV drivers/net/ethernet/intel/igb/igb_main.c:165: warning: ‘igb_vf_configure’ declared ‘static’ but never defined drivers/net/ethernet/intel/igb/igb_main.c:166: warning: ‘igb_find_enabled_vfs’ declared ‘static’ but never defined drivers/net/ethernet/intel/igb/igb_main.c:167: warning: ‘igb_check_vf_assignment’ declared ‘static’ but never defined Signed-off-by: RongQing Li <roy.qing.li@gmail.com> Acked-by: Greg Rose <gregory.v.rose@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/intel/igb/igb_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index f9b818267de8..f689aa1b5a37 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -162,9 +162,12 @@ static int igb_ndo_set_vf_bw(struct net_device *netdev, int vf, int tx_rate);
162static int igb_ndo_get_vf_config(struct net_device *netdev, int vf, 162static int igb_ndo_get_vf_config(struct net_device *netdev, int vf,
163 struct ifla_vf_info *ivi); 163 struct ifla_vf_info *ivi);
164static void igb_check_vf_rate_limit(struct igb_adapter *); 164static void igb_check_vf_rate_limit(struct igb_adapter *);
165
166#ifdef CONFIG_PCI_IOV
165static int igb_vf_configure(struct igb_adapter *adapter, int vf); 167static int igb_vf_configure(struct igb_adapter *adapter, int vf);
166static int igb_find_enabled_vfs(struct igb_adapter *adapter); 168static int igb_find_enabled_vfs(struct igb_adapter *adapter);
167static int igb_check_vf_assignment(struct igb_adapter *adapter); 169static int igb_check_vf_assignment(struct igb_adapter *adapter);
170#endif
168 171
169#ifdef CONFIG_PM 172#ifdef CONFIG_PM
170static int igb_suspend(struct pci_dev *, pm_message_t); 173static int igb_suspend(struct pci_dev *, pm_message_t);