bnxt_en: include bnxt_vfr.c code under CONFIG_BNXT_SRIOV switch
authorSathya Perla <sathya.perla@broadcom.com>
Tue, 25 Jul 2017 17:28:39 +0000 (13:28 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jul 2017 19:48:19 +0000 (12:48 -0700)
commitd3e3becedc43adc8b8fb12e7507dd4e5aae4d17d
tree3296a20aba47e37b7dbdac2f5b3d6f0c042be576
parent51e3ea3f6bf031439073b7da5afee2a03f606b0c
bnxt_en: include bnxt_vfr.c code under CONFIG_BNXT_SRIOV switch

And define empty functions in bnxt_vfr.h when CONFIG_BNXT_SRIOV is not
defined.

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>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h