diff options
author | Michael Chan <michael.chan@broadcom.com> | 2021-11-16 14:26:10 -0500 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-11-16 18:58:14 -0800 |
commit | 9f5363916a5099e618e6e40606e91b8ce0833754 (patch) | |
tree | f65148cfc44314bfc634214ce14e74d017e52784 /net/unix/af_unix.c | |
parent | 2460386bef0b9b98b71728d3c173e15558b78d82 (diff) |
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: 46d08f55d24e ("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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions