]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix compile error regression with CONFIG_BNXT_SRIOV not set.
authorMichael Chan <michael.chan@broadcom.com>
Fri, 30 Aug 2019 23:10:38 +0000 (19:10 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Aug 2019 00:38:24 +0000 (17:38 -0700)
commitd9cd90e36312f18fd6dc416bb2eefa30a7153691
treeff5548bd043bfdd0e73b0eab7cc1c584524558d5
parent6fb84859d3035d332e623a0e0e4e2136f05fc838
bnxt_en: Fix compile error regression with CONFIG_BNXT_SRIOV not set.

Add a new function bnxt_get_registered_vfs() to handle the work
of getting the number of registered VFs under #ifdef CONFIG_BNXT_SRIOV.
The main code will call this function and will always work correctly
whether CONFIG_BNXT_SRIOV is set or not.

Fixes: 55f38b9a82fc ("bnxt_en: Handle firmware reset.")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c