membarrier selftest issue
From: Mathieu Desnoyers
Date: Mon Jun 15 2015 - 11:32:08 EST
Hi,
The updated membarrier tree:
https://github.com/compudj/linux-dev
branch: sys-membarrier-volatile
has an issue building selftests (make -C tools/testing/selftests)
It appears that including linux/membarrier.h from those userspace
tests now fails (as of 4.1-rc8). Of course, my system does not have
the updated userspace headers installed. What is the right course
of action there ?
[...]
gcc -I../../../../usr/include/ kcmp_test.c -o kcmp_test
kcmp_test.c:13:24: fatal error: linux/kcmp.h: No such file or directory
#include <linux/kcmp.h>
^
compilation terminated.
make[1]: *** [kcmp_test] Error 1
make[1]: Leaving directory `/home/efficios/git/linux-dev/tools/testing/selftests/kcmp'
make[1]: Entering directory `/home/efficios/git/linux-dev/tools/testing/selftests/membarrier'
gcc -g -I../../../../usr/include/ membarrier_test.c -o membarrier_test
membarrier_test.c:4:30: fatal error: linux/membarrier.h: No such file or directory
#include <linux/membarrier.h>
^
compilation terminated.
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/efficios/git/linux-dev/tools/testing/selftests/membarrier'
make[1]: Entering directory `/home/efficios/git/linux-dev/tools/testing/selftests/memfd'
gcc -D_FILE_OFFSET_BITS=64 -I../../../../include/uapi/ -I../../../../include/ -I../../../../usr/include/ memfd_test.c -o memfd_test
memfd_test.c: In function âsys_memfd_createâ:
memfd_test.c:26:17: error: â__NR_memfd_createâ undeclared (first use in this function)
return syscall(__NR_memfd_create, name, flags);
^
memfd_test.c:26:17: note: each undeclared identifier is reported only once for each function it appears
Thanks,
Mathieu
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/