sparc: fix implicit use of uaccess.h header in mdesc.c
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 20 Sep 2011 01:15:28 +0000 (21:15 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:30:52 +0000 (19:30 -0400)
Building sparc64 with the module.h cleanup reveals this implicit
include being taken advantage of:

arch/sparc/kernel/mdesc.c: In function 'mdesc_read':
arch/sparc/kernel/mdesc.c:900: error: implicit declaration of function 'copy_to_user'

Fix it up before the implicit module.h presence is removed.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/sparc/kernel/mdesc.c

index acaebb63c4fd4b7a7f42e0fc6d40befe799168c3..ea6d4d6c02f6eff55ada1a005cde0a99e66b6264 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/hypervisor.h>
 #include <asm/mdesc.h>
 #include <asm/prom.h>
+#include <asm/uaccess.h>
 #include <asm/oplib.h>
 #include <asm/smp.h>