1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/broadcom/bnxt
Michael Chan 9f5363916a bnxt_en: Fix compile error regression when CONFIG_BNXT_SRIOV is not set
bp->sriov_cfg is not defined when CONFIG_BNXT_SRIOV is not set.  Fix
it by adding a helper function bnxt_sriov_cfg() to handle the logic
with or without the config option.

Fixes: 46d08f55d2 ("bnxt_en: extend RTNL to VF check in devlink driver_reinit")
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Reviewed-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/1637090770-22835-1-git-send-email-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-11-16 18:58:14 -08:00
..
bnxt.c bnxt_en: implement firmware live patching 2021-10-29 12:13:05 +01:00
bnxt.h bnxt_en: Fix compile error regression when CONFIG_BNXT_SRIOV is not set 2021-11-16 18:58:14 -08:00
bnxt_coredump.c bnxt_en: extract coredump command line from current task 2021-10-29 12:13:05 +01:00
bnxt_coredump.h bnxt_en: move coredump functions into dedicated file 2021-10-29 12:13:05 +01:00
bnxt_dcb.c bnxt_en: Use struct_group_attr() for memcpy() region 2021-09-25 08:20:48 -07:00
bnxt_dcb.h bnxt_en: Use struct_group_attr() for memcpy() region 2021-09-25 08:20:48 -07:00
bnxt_debugfs.c bnxt: no need to check return value of debugfs_create functions 2019-08-10 15:25:47 -07:00
bnxt_debugfs.h bnxt_en: add debugfs support for DIM 2018-04-27 14:47:30 -04:00
bnxt_devlink.c bnxt_en: Fix compile error regression when CONFIG_BNXT_SRIOV is not set 2021-11-16 18:58:14 -08:00
bnxt_devlink.h bnxt_en: remove fw_reset devlink health reporter 2021-10-29 12:13:05 +01:00
bnxt_dim.c linux/dim: Move implementation to .c files 2019-06-25 13:46:39 -07:00
bnxt_ethtool.c bnxt_en: Provide stored devlink "fw" version on older firmware 2021-10-29 12:13:05 +01:00
bnxt_ethtool.h bnxt_en: Provide stored devlink "fw" version on older firmware 2021-10-29 12:13:05 +01:00
bnxt_fw_hdr.h bnxt_en: Added support for Secure Firmware Update 2016-09-19 21:32:24 -04:00
bnxt_hsi.h bnxt_en: Update firmware interface to 1.10.2.63 2021-10-29 12:13:05 +01:00
bnxt_hwrm.c bnxt_en: fix kernel doc warnings in bnxt_hwrm.c 2021-09-01 16:24:25 -07:00
bnxt_hwrm.h bnxt_en: support multiple HWRM commands in flight 2021-08-30 09:35:04 +01:00
bnxt_nvm_defs.h bnxt_en: Fix memory fault in bnxt_ethtool_init() 2018-04-19 16:35:09 -04:00
bnxt_ptp.c bnxt_en: implement devlink dev reload driver_reinit 2021-10-29 12:13:04 +01:00
bnxt_ptp.h bnxt_en: implement devlink dev reload driver_reinit 2021-10-29 12:13:04 +01:00
bnxt_sriov.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
bnxt_sriov.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
bnxt_tc.c bnxt_en: reject indirect blk offload when hw-tc-offload is off 2021-11-15 14:13:20 +00:00
bnxt_tc.h bnxt_en: Fix array overrun in bnxt_fill_l2_rewrite_fields(). 2019-11-13 14:28:30 -08:00
bnxt_ulp.c bnxt_en: update all firmware calls to use the new APIs 2021-08-30 09:35:04 +01:00
bnxt_ulp.h bnxt_en: Remove not used other ULP define 2021-10-29 21:21:09 -07:00
bnxt_vfr.c ethernet: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
bnxt_vfr.h bnxt_en: Free and allocate VF-Reps during error recovery. 2021-04-12 13:20:38 -07:00
bnxt_xdp.c net: broadcom: switch from 'pci_' to 'dma_' API 2021-08-23 11:56:56 +01:00
bnxt_xdp.h bnxt_en: optimized XDP_REDIRECT support 2019-07-08 15:15:24 -07:00
Makefile bnxt_en: move coredump functions into dedicated file 2021-10-29 12:13:05 +01:00