bnx2x: Fix compilation when CONFIG_BNX2X_SRIOV is not set
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Wed, 26 Mar 2014 07:06:29 +0000 (09:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Mar 2014 18:29:17 +0000 (14:29 -0400)
Commit 370d4a26 "bnx2x: Create workqueue for IOV related tasks" breaks bnx2x
compilation when CONFIG_BNX2X_SRIOV is not set - "multiple definition of
`bnx2x_schedule_iov_task'".

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h

index db73a247ecfb00cdebb04b9046a9add5f4a21023..8bf764570eef773eafa87ffd0fca26592e4d64ef 100644 (file)
@@ -574,7 +574,7 @@ static inline int bnx2x_sriov_configure(struct pci_dev *dev, int num_vfs) {retur
 static inline void bnx2x_iov_channel_down(struct bnx2x *bp) {}
 
 static inline void bnx2x_iov_task(struct work_struct *work) {}
-void bnx2x_schedule_iov_task(struct bnx2x *bp, enum bnx2x_iov_flag flag) {}
+static inline void bnx2x_schedule_iov_task(struct bnx2x *bp, enum bnx2x_iov_flag flag) {}
 
 #endif /* CONFIG_BNX2X_SRIOV */
 #endif /* bnx2x_sriov.h */