]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix compile errors when CONFIG_BNXT_SRIOV is not set.
authorMichael Chan <mchan@broadcom.com>
Fri, 23 Oct 2015 19:06:19 +0000 (15:06 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Oct 2015 00:34:34 +0000 (17:34 -0700)
commit512cec002e0e79d634418a3a2d09a9f99d31048f
tree1fee3bb597596654e2b3613b3cc1c5e0488f1967
parent1d444cceadcd1e00976d9200b4b564f8272e6a45
bnxt_en: Fix compile errors when CONFIG_BNXT_SRIOV is not set.

struct bnxt_pf_info needs to be always defined.  Move bnxt_update_vf_mac()
to bnxt_sriov.c and add some missing #ifdef CONFIG_BNXT_SRIOV.

Reported-by: Jim Hull <jim.hull@hpe.com>
Tested-by: Jim Hull <jim.hull@hpe.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h