]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
tools build feature sched_getcpu: Undef _GNU_SOURCE at the end
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Feb 2019 16:02:01 +0000 (13:02 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Feb 2019 18:39:21 +0000 (15:39 -0300)
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 <ast@fb.com>
Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jakub Kicinski <jakub.kicinski@netronome.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Song Liu <songliubraving@fb.com>
Cc: Yonghong Song <yhs@fb.com>
Link: https://lkml.kernel.org/n/tip-lg3kpd9tzypc797vb1f42u6k@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/feature/test-sched_getcpu.c

index e448deb4124c1ea8ed96f7b9a430095cdcac2e88..48995ac7911eae5084fada30c9b48069bdf2ba77 100644 (file)
@@ -8,3 +8,5 @@ int main(void)
 {
        return sched_getcpu();
 }
+
+#undef _GNU_SOURCE