]> git.baikalelectronics.ru Git - kernel.git/commit
userfaultfd: remove kernel header include from uapi header
authorAndre Przywara <andre.przywara@arm.com>
Thu, 1 Oct 2015 22:36:51 +0000 (15:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Oct 2015 01:42:35 +0000 (21:42 -0400)
commit069bb537859d9b381835dd8ff5db150e95e96ca5
tree83c7c568df204d7a2c07396b1edd975df3b052ef
parent4191c43cbe2a7fdbe6d31ba8f7369158aca0c238
userfaultfd: remove kernel header include from uapi header

As include/uapi/linux/userfaultfd.h is a user visible header file, it
should not include kernel-exclusive header files.

So trying to build the userfaultfd test program from the selftests
directory fails, since it contains a reference to linux/compiler.h.  As
it turns out, that header is not really needed there, so we can simply
remove it to fix that issue.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/uapi/linux/userfaultfd.h