Thread (9 messages) 9 messages, 4 authors, 2015-09-24

[PATCH 1/2] userfaultfd: remove kernel header include from uapi header

flat view
STALE4052d

From: Andre Przywara <hidden>
Date: 2015-09-22 10:45:47
Also in: lkml
Subsystem: memory management - userfaultfd, the rest · Maintainers: Andrew Morton, Mike Rapoport, Linus Torvalds

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 <redacted>
---
 include/uapi/linux/userfaultfd.h | 2 --
 1 file changed, 2 deletions(-)
diff --git a/include/uapi/linux/userfaultfd.h b/include/uapi/linux/userfaultfd.h
index df0e09b..9057d7a 100644
--- a/include/uapi/linux/userfaultfd.h
+++ b/include/uapi/linux/userfaultfd.h
@@ -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:
-- 
2.5.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help