]> git.baikalelectronics.ru Git - kernel.git/commit
MN10300: asm/uaccess.h needs to #include linux/kernel.h for might_sleep()
authorDavid Howells <dhowells@redhat.com>
Tue, 21 Jun 2011 09:29:51 +0000 (10:29 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Jun 2011 01:31:44 +0000 (18:31 -0700)
commitc1c1668b29fee56905a0ebe3724d4d7b6aa09f61
tree4519a60303f4990aa19f52b94c1e5119da0869fa
parent255bd06b231f5bb07c782c242770bfa23a40bce1
MN10300: asm/uaccess.h needs to #include linux/kernel.h for might_sleep()

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/mn10300/include/asm/uaccess.h