[PATCH net-next] bnxt_en: add a dummy definition for bnxt_vf_rep_get_fid()

Subsystems: broadcom bnxt_en 50 gigabit ethernet driver, networking drivers, the rest

STALE3334d

3 messages, 3 authors, 2017-08-29 · open the first message on its own page

[PATCH net-next] bnxt_en: add a dummy definition for bnxt_vf_rep_get_fid()

From: Sathya Perla <hidden>
Date: 2017-08-29 06:15:08

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 <redacted>
Fixes: 2ae7408fedfe ("bnxt_en: bnxt: add TC flower filter offload support")
Signed-off-by: Sathya Perla <redacted>
---
 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h b/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h
index d8b5f89..7787cd24 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 */
-- 
2.7.4

Re: [PATCH net-next] bnxt_en: add a dummy definition for bnxt_vf_rep_get_fid()

From: Michael Chan <michael.chan@broadcom.com>
Date: 2017-08-29 06:22:25

On Mon, Aug 28, 2017 at 11:15 PM, Sathya Perla
[off-list ref] wrote:
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 <redacted>
Fixes: 2ae7408fedfe ("bnxt_en: bnxt: add TC flower filter offload support")
Signed-off-by: Sathya Perla <redacted>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>

Re: [PATCH net-next] bnxt_en: add a dummy definition for bnxt_vf_rep_get_fid()

From: David Miller <davem@davemloft.net>
Date: 2017-08-29 16:29:00

From: Sathya Perla <redacted>
Date: Tue, 29 Aug 2017 11:45:03 +0530
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 <redacted>
Fixes: 2ae7408fedfe ("bnxt_en: bnxt: add TC flower filter offload support")
Signed-off-by: Sathya Perla <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help