diff mbox series

[ndctl,v2,3/3] ndctl, test: Make tests using MAP_SYNC only include <sys/mman.h>

Message ID 20190215025725.19366-3-elliott@hpe.com (mailing list archive)
State New, archived
Headers show
Series [ndctl,1/2] autoconf: Check for MAP_SHARED_VALIDATE | expand

Commit Message

Elliott, Robert (Servers) Feb. 15, 2019, 2:57 a.m. UTC
The kernel-4.15 mmap() manpage defines that MAP_SHARED_VALIDATE and
MAP_SYNC are provided to applications by <sys/mman.h>. This requires
glibc-2.28 and architecture support.

Although they are also available via <linux/mman.h>, that is not the
defined API.

Make tests using it (currently only dax-poison) rely on <sys/mman.h>
by removing inclusion of <linux/mman.h>.

Fixes: e6a1d12d4a6e2 ("ndctl: autoconf detect BUS_MCEERR_AR")
Signed-off-by: Robert Elliott <elliott@hpe.com>
 test/dax-poison.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series


diff --git a/test/dax-poison.c b/test/dax-poison.c
index a25bf0b..69bb161 100644
--- a/test/dax-poison.c
+++ b/test/dax-poison.c
@@ -5,7 +5,6 @@ 
 #include <signal.h>
 #include <setjmp.h>
 #include <sys/mman.h>
-#include <linux/mman.h>
 #include <fcntl.h>
 #include <string.h>
 #include <errno.h>