lkml.org 
[lkml]   [2011]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] linux/uaccess.h needs to #include linux/kernel.h for might_sleep()
Date
linux/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>
---

include/linux/uaccess.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h
index 5ca0951..ab540ed 100644
--- a/include/linux/uaccess.h
+++ b/include/linux/uaccess.h
@@ -2,6 +2,7 @@
#define __LINUX_UACCESS_H__

#include <linux/preempt.h>
+#include <linux/kernel.h>
#include <asm/uaccess.h>

/*


\
 
 \ /
  Last update: 2011-06-15 02:25    [W:0.041 / U:1.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site