aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h
diff options
context:
space:
mode:
authorSathya Perla <sathya.perla@broadcom.com>2017-08-29 11:45:03 +0530
committerDavid S. Miller <davem@davemloft.net>2017-08-29 09:28:42 -0700
commitf143647a02825038d8d6251422e1d0ebdcb6d9ea (patch)
tree0f2eadaa933579f03fd025701dd250c4000ea7fa /drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h
parenthinic: don't build the module by default (diff)
downloadlinux-dev-f143647a02825038d8d6251422e1d0ebdcb6d9ea.tar.xz
linux-dev-f143647a02825038d8d6251422e1d0ebdcb6d9ea.zip
bnxt_en: add a dummy definition for bnxt_vf_rep_get_fid()
When bnxt VF-reps are not compiled in (CONFIG_BNXT_SRIOV is off) bnxt_tc.c needs a dummy definition of the routine bnxt_vf_rep_get_fid(). Reported-by: kbuild test robot <fengguang.wu@intel.com> Fixes: 2ae7408fedfe ("bnxt_en: bnxt: add TC flower filter offload support") Signed-off-by: Sathya Perla <sathya.perla@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h b/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h
index d8b5f89427fa..7787cd24606a 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h
@@ -80,5 +80,10 @@ static inline struct net_device *bnxt_get_vf_rep(struct bnxt *bp, u16 cfa_code)
{
return NULL;
}
+
+static inline u16 bnxt_vf_rep_get_fid(struct net_device *dev)
+{
+ return 0;
+}
#endif /* CONFIG_BNXT_SRIOV */
#endif /* BNXT_VFR_H */