Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3cc1f952 authored by Chen Gang's avatar Chen Gang Committed by Greg Kroah-Hartman
Browse files

drivers: uio: Kconfig: add MMU dependancy for UIO



The User space I/O drivers are useful, only when user space meaningful
(MMU must be enabled).

So need let it depend on MMU, or can not pass compiling, the related
error (allmodconfig for H8300):

    CC [M]  drivers/uio/uio.o
  drivers/uio/uio.c: In function 'uio_mmap_physical':
  drivers/uio/uio.c:650:2: error: implicit declaration of function 'pgprot_noncached' [-Werror=implicit-function-declaration]
  drivers/uio/uio.c:650:20: error: incompatible types when assigning to type 'pgprot_t' from type 'int'

Signed-off-by: default avatarChen Gang <gang.chen@asianux.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 06849faa
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
menuconfig UIO
menuconfig UIO
	tristate "Userspace I/O drivers"
	tristate "Userspace I/O drivers"
	depends on MMU
	help
	help
	  Enable this to allow the userspace driver core code to be
	  Enable this to allow the userspace driver core code to be
	  built.  This code allows userspace programs easy access to
	  built.  This code allows userspace programs easy access to