Skip to content

Commit

Permalink
userfaultfd: remove kernel header include from uapi header
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andre Przywara authored and Linus Torvalds committed Oct 2, 2015
1 parent a523841 commit 9ff42d1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/uapi/linux/userfaultfd.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#include <linux/types.h>

#include <linux/compiler.h>

#define UFFD_API ((__u64)0xAA)
/*
* After implementing the respective features it will become:
Expand Down

0 comments on commit 9ff42d1

Please sign in to comment.