From 352465bd42737de4b97ce2072f0b36b2499dbb9e Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 1 Sep 2015 13:42:52 -0400 Subject: [PATCH] Cleanup: membarrier selftest header inclusion The kselftest can depend on having installed kernel headers. Therefore, there is no need to point to the local kernel source for headers. Signed-off-by: Mathieu Desnoyers CC: Michael Ellerman CC: Andrew Morton CC: linux-api@vger.kernel.org CC: Pranith Kumar CC: Shuah Khan --- tools/testing/selftests/membarrier/Makefile | 9 +++------ tools/testing/selftests/membarrier/membarrier_test.c | 5 +---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/tools/testing/selftests/membarrier/Makefile b/tools/testing/selftests/membarrier/Makefile index 877a503..0e2a5b7 100644 --- a/tools/testing/selftests/membarrier/Makefile +++ b/tools/testing/selftests/membarrier/Makefile @@ -1,11 +1,8 @@ -CFLAGS += -g -I../../../../usr/include/ - -all: - $(CC) $(CFLAGS) membarrier_test.c -o membarrier_test - TEST_PROGS := membarrier_test +all: $(TEST_PROGS) + include ../lib.mk clean: - $(RM) membarrier_test + $(RM) $(TEST_PROGS) diff --git a/tools/testing/selftests/membarrier/membarrier_test.c b/tools/testing/selftests/membarrier/membarrier_test.c index dde3125..535f0fe 100644 --- a/tools/testing/selftests/membarrier/membarrier_test.c +++ b/tools/testing/selftests/membarrier/membarrier_test.c @@ -1,9 +1,6 @@ #define _GNU_SOURCE -#define __EXPORTED_HEADERS__ - #include -#include -#include +#include #include #include #include -- 1.9.1