* [PATCH] MN10300: asm/uaccess.h needs to #include linux/kernel.h for might_sleep()
@ 2011-06-21 9:29 David Howells
0 siblings, 0 replies; only message in thread
From: David Howells @ 2011-06-21 9:29 UTC (permalink / raw)
To: torvalds; +Cc: akpm, linux-am33-list, linux-kernel, David Howells
MN10300's asm/uaccess.h needs to #include linux/kernel.h to get might_sleep()
otherwise it fails to build on MN10300 allyesconfig. This fails in a few
places with messages like the following:
In file included from security/keys/trusted.c:14:
include/linux/uaccess.h: In function '__copy_from_user_nocache':
include/linux/uaccess.h:52: error: implicit declaration of function 'might_sleep'
Signed-off-by: David Howells <dhowells@redhat.com>
---
arch/mn10300/include/asm/uaccess.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/mn10300/include/asm/uaccess.h b/arch/mn10300/include/asm/uaccess.h
index 3d6e60d..780560b 100644
--- a/arch/mn10300/include/asm/uaccess.h
+++ b/arch/mn10300/include/asm/uaccess.h
@@ -15,6 +15,7 @@
* User space memory access functions
*/
#include <linux/thread_info.h>
+#include <linux/kernel.h>
#include <asm/page.h>
#include <asm/errno.h>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-21 9:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-21 9:29 [PATCH] MN10300: asm/uaccess.h needs to #include linux/kernel.h for might_sleep() David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).