]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
igb: fix a compile warning
authorRongQing Li <roy.qing.li@gmail.com>
Tue, 18 Oct 2011 22:52:35 +0000 (22:52 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 13:04:31 +0000 (21:04 +0800)
control these three function declarations and
definitions with same macro CONFIG_PCI_IOV

drivers/net/igb/igb_main.c:165:
warning: ‘igb_vf_configure’ declared ‘static’ but never defined
drivers/net/igb/igb_main.c:166:
warning: ‘igb_find_enabled_vfs’ declared ‘static’ but never defined
drivers/net/igb/igb_main.c:167:
warning: ‘igb_check_vf_assignment’ declared ‘static’ but never defined

(cherry picked from commit 46a016985a442b499faa52dff7e74a79f6a22cef)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/igb/igb_main.c

index 4b73ffaa96ddbe70ca830cb244677a3a0b3472ee..215c1f2e73c61b3e30e8f4cf84fee4b06a58b8a6 100644 (file)
@@ -162,9 +162,12 @@ static int igb_ndo_set_vf_bw(struct net_device *netdev, int vf, int tx_rate);
 static int igb_ndo_get_vf_config(struct net_device *netdev, int vf,
                                 struct ifla_vf_info *ivi);
 static void igb_check_vf_rate_limit(struct igb_adapter *);
+
+#ifdef CONFIG_PCI_IOV
 static int igb_vf_configure(struct igb_adapter *adapter, int vf);
 static int igb_find_enabled_vfs(struct igb_adapter *adapter);
 static int igb_check_vf_assignment(struct igb_adapter *adapter);
+#endif
 
 #ifdef CONFIG_PM
 static int igb_suspend(struct pci_dev *, pm_message_t);