mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]  drivers: uio: Kconfig: add MMU dependancy for UIO
@ 2013-08-30  5:01 Chen Gang
  0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2013-08-30  5:01 UTC (permalink / raw)
  To: hjk; +Cc: Greg KH, linux-kernel

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>
---
 drivers/uio/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/uio/Kconfig b/drivers/uio/Kconfig
index a81d163..f91ec11 100644
--- a/drivers/uio/Kconfig
+++ b/drivers/uio/Kconfig
@@ -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
-- 
1.7.7.6

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-08-30  5:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-30  5:01 [PATCH] drivers: uio: Kconfig: add MMU dependancy for UIO Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®