Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1230069

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

From Andre Przywara <andre.przywara@arm.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] userfaultfd: remove kernel header include from uapi header
Date 2015-09-22 12:50 +0200
Message-ID <qbtj4-2Wc-19@gated-at.bofh.it> (permalink)
References <qbtj3-2Wc-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] selftests/userfaultfd: fix build Andre Przywara <andre.przywara@arm.com> - 2015-09-22 12:50 +0200
  [PATCH 1/2] userfaultfd: remove kernel header include from uapi header Andre Przywara <andre.przywara@arm.com> - 2015-09-22 12:50 +0200
  [PATCH 2/2] selftests/userfaultfd: improve syscall number definition Andre Przywara <andre.przywara@arm.com> - 2015-09-22 12:50 +0200
    Re: [PATCH 2/2] selftests/userfaultfd: improve syscall number  definition Shuah Khan <shuahkh@osg.samsung.com> - 2015-09-22 15:50 +0200
      Re: [PATCH 2/2] selftests/userfaultfd: improve syscall number  definition Andrea Arcangeli <aarcange@redhat.com> - 2015-09-22 16:10 +0200
        Re: [PATCH 2/2] selftests/userfaultfd: improve syscall number  definition Andre Przywara <andre.przywara@arm.com> - 2015-09-22 19:20 +0200
          Re: [PATCH 2/2] selftests/userfaultfd: improve syscall number  definition Michael Ellerman <mpe@ellerman.id.au> - 2015-09-23 12:00 +0200
            Re: [PATCH 2/2] selftests/userfaultfd: improve syscall number  definition Andre Przywara <andre.przywara@arm.com> - 2015-09-23 15:20 +0200
              Re: [PATCH 2/2] selftests/userfaultfd: improve syscall number  definition Michael Ellerman <mpe@ellerman.id.au> - 2015-09-24 04:10 +0200

csiph-web