Skip to contentSkip to conversation

tools build feature sched_getcpu: Undef _GNU_SOURCE at the end

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Feb 15, 2019

lore
Share & tools
lore
#0 lore raw
Commit-ID:  44ec8396e2dadf0f0806767642cfac9e04d0d5b1
Gitweb:     https://git.kernel.org/tip/44ec8396e2dadf0f0806767642cfac9e04d0d5b1
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Thu, 14 Feb 2019 13:02:01 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 14 Feb 2019 15:39:21 -0300

tools build feature sched_getcpu: Undef _GNU_SOURCE at the end

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.

Cc Adrian Hunter <[email protected]>
Cc Alexei Starovoitov <[email protected]>
Cc Andrii Nakryiko <[email protected]>
Cc Daniel Borkmann <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc Jin Yao <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Song Liu <[email protected]>
Cc Yonghong Song <[email protected]>
---
 tools/build/feature/test-sched_getcpu.c | 2 ++
 1 file changed, 2 insertions(+)
tools/build/feature/test-sched_getcpu.c +2 -0
index e448deb4124c..48995ac7911e 100644
@@ -8,3 +8,5 @@ int main(void)
 {
 	return sched_getcpu();
 }
+
+#undef _GNU_SOURCE