nfp: add MAY_USE_DEVLINK dependency
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 29 May 2017 00:52:52 +0000 (17:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 May 2017 15:27:03 +0000 (11:27 -0400)
Fix build with DEVLINK=m and NFP=y.

Fixes: 1851f93fd2ee ("nfp: add devlink support")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/Kconfig

index 967d7ca8c28cbea3b07ffc6ce8fe6b82b582408d..0d5a7b9203a41d5235cb8a725ac3a81d4fc4c936 100644 (file)
@@ -19,6 +19,7 @@ config NFP
        tristate "Netronome(R) NFP4000/NFP6000 NIC driver"
        depends on PCI && PCI_MSI
        depends on VXLAN || VXLAN=n
+       depends on MAY_USE_DEVLINK
        ---help---
          This driver supports the Netronome(R) NFP4000/NFP6000 based
          cards working as a advanced Ethernet NIC.  It works with both