[PATCH net-next] cnic: Fix Kconfig warning without MMU

From: YueHaibing
Date: Thu Nov 14 2019 - 04:02:55 EST


If MMU is not set, Kconfig warning this:

WARNING: unmet direct dependencies detected for UIO
Depends on [n]: MMU [=n]
Selected by [y]:
- CNIC [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_BROADCOM [=y] && PCI [=y] && (IPV6 [=y] || IPV6 [=y]=n)

Make CNIC depend on UIO instead of select it to fix this.

Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
---
drivers/net/ethernet/broadcom/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/broadcom/Kconfig b/drivers/net/ethernet/broadcom/Kconfig
index 53055ce..7acb677 100644
--- a/drivers/net/ethernet/broadcom/Kconfig
+++ b/drivers/net/ethernet/broadcom/Kconfig
@@ -87,8 +87,8 @@ config BNX2
config CNIC
tristate "QLogic CNIC support"
depends on PCI && (IPV6 || IPV6=n)
+ depends on UIO
select BNX2
- select UIO
---help---
This driver supports offload features of QLogic bnx2 gigabit
Ethernet cards.
--
2.7.4