[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110615002210.1392.64165.stgit@warthog.procyon.org.uk>
Date: Wed, 15 Jun 2011 01:22:10 +0100
From: David Howells <dhowells@...hat.com>
To: torvalds@...l.org
Cc: akpm@...ux-foundation.org, linux-am33-list@...hat.com,
linux-kernel@...r.kernel.org, David Howells <dhowells@...hat.com>
Subject: [PATCH] linux/uaccess.h needs to #include linux/kernel.h for
might_sleep()
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@...hat.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>
/*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists