netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] bnxt_en: Fix kbuild errors and rename phys_port_name.
@ 2017-07-25 17:28 Michael Chan
  2017-07-25 17:28 ` [PATCH net-next 1/3] bnxt_en: include bnxt_vfr.c code under CONFIG_BNXT_SRIOV switch Michael Chan
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Michael Chan @ 2017-07-25 17:28 UTC (permalink / raw)
  To: davem; +Cc: netdev

Fix 2 more kbuild errors (the first one already fixed by DaveM), and rename
the physical port name.

Sathya Perla (3):
  bnxt_en: include bnxt_vfr.c code under CONFIG_BNXT_SRIOV switch
  bnxt_en: use SWITCHDEV_SET_OPS() for setting vf_rep_switchdev_ops
  bnxt_en: fix switchdev port naming for external-port-rep and vf-reps

 drivers/net/ethernet/broadcom/bnxt/bnxt.c     |  6 +-----
 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c | 10 +++++++--
 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h | 30 +++++++++++++++++++++++++++
 3 files changed, 39 insertions(+), 7 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH net-next 1/3] bnxt_en: include bnxt_vfr.c code under CONFIG_BNXT_SRIOV switch
@ 2017-07-25 10:49 Sathya Perla
  2017-07-25 16:34 ` Michael Chan
  0 siblings, 1 reply; 7+ messages in thread
From: Sathya Perla @ 2017-07-25 10:49 UTC (permalink / raw)
  To: netdev

This fixes build error when CONFIG_BNXT_SRIOV is switched off:
>> drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c:165:16: error: 'struct
>> bnxt' has no member named 'sriov_lock'

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: 4ab0c6a8ffd7 ("bnxt_en: add support to enable VF-representors")
Signed-off-by: Sathya Perla <sathya.perla@broadcom.com>
---
 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c
index 83478e9..86850ae 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c
@@ -16,6 +16,8 @@
 #include "bnxt.h"
 #include "bnxt_vfr.h"
 
+#ifdef CONFIG_BNXT_SRIOV
+
 #define CFA_HANDLE_INVALID		0xffff
 #define VF_IDX_INVALID			0xffff
 
@@ -487,3 +489,5 @@ void bnxt_dl_unregister(struct bnxt *bp)
 	devlink_unregister(dl);
 	devlink_free(dl);
 }
+
+#endif /* CONFIG_BNXT_SRIOV */
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-07-25 19:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-25 17:28 [PATCH net-next 0/3] bnxt_en: Fix kbuild errors and rename phys_port_name Michael Chan
2017-07-25 17:28 ` [PATCH net-next 1/3] bnxt_en: include bnxt_vfr.c code under CONFIG_BNXT_SRIOV switch Michael Chan
2017-07-25 17:28 ` [PATCH net-next 2/3] bnxt_en: use SWITCHDEV_SET_OPS() for setting vf_rep_switchdev_ops Michael Chan
2017-07-25 17:28 ` [PATCH net-next 3/3] bnxt_en: fix switchdev port naming for external-port-rep and vf-reps Michael Chan
2017-07-25 19:48 ` [PATCH net-next 0/3] bnxt_en: Fix kbuild errors and rename phys_port_name David Miller
  -- strict thread matches above, loose matches on Subject: below --
2017-07-25 10:49 [PATCH net-next 1/3] bnxt_en: include bnxt_vfr.c code under CONFIG_BNXT_SRIOV switch Sathya Perla
2017-07-25 16:34 ` Michael Chan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).