]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers: uio: Kconfig: add MMU dependancy for UIO
authorChen Gang <gang.chen@asianux.com>
Fri, 30 Aug 2013 05:01:45 +0000 (13:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Aug 2013 21:19:46 +0000 (14:19 -0700)
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: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/Kconfig

index 86d98c86e147ea51066f037deedff245708e82ed..5a90914d856d21648027de61e9f9123d9ead9a6d 100644 (file)
@@ -1,5 +1,6 @@
 menuconfig UIO
        tristate "Userspace I/O drivers"
+       depends on MMU
        help
          Enable this to allow the userspace driver core code to be
          built.  This code allows userspace programs easy access to