Re: [PATCH net-next] cnic: Fix Kconfig warning without MMU
From: David Miller
Date: Fri Nov 15 2019 - 15:14:19 EST
From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Thu, 14 Nov 2019 17:02:19 +0800
> 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>
This makes no sense, if you need MMU then guard on MMU.
UIO is for userspace device drivers, and not something that CNIC
requires.