Thread (45 messages) flat view 45 messages, 2 authors, 2019-02-15
STALE2768d

[PATCH 43/43] tools build feature sched_getcpu: Undef _GNU_SOURCE at the end

From: Arnaldo Carvalho de Melo <acme@kernel.org>
Date: 2019-02-15 00:49:05
Also in: lkml
Subsystem: the rest · Maintainer: Linus Torvalds

From: Arnaldo Carvalho de Melo <redacted>

Since this feature test is included in test-all.c, the feature detection
fast path compile/link phase, it can't leave any defines behind, as it
can affect the tests included after it, so remove it.

Reported-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexei Starovoitov <redacted>
Cc: Andrii Nakryiko <redacted>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jakub Kicinski <redacted>
Cc: Jin Yao <redacted>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Song Liu <redacted>
Cc: Yonghong Song <redacted>
Link: https://lkml.kernel.org/n/tip-lg3kpd9tzypc797vb1f42u6k@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <redacted>
---
 tools/build/feature/test-sched_getcpu.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/tools/build/feature/test-sched_getcpu.c b/tools/build/feature/test-sched_getcpu.c
index e448deb4124c..48995ac7911e 100644
--- a/tools/build/feature/test-sched_getcpu.c
+++ b/tools/build/feature/test-sched_getcpu.c
@@ -8,3 +8,5 @@ int main(void)
 {
 	return sched_getcpu();
 }
+
+#undef _GNU_SOURCE
-- 
2.19.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