From: Muhammad Falak R Wani Date: Fri, 13 May 2016 12:05:43 +0000 (+0530) Subject: tools: testing: define the _GNU_SOURCE macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6eab37daf0ec1077fd612ff27ab513db20f33767;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git tools: testing: define the _GNU_SOURCE macro Add the macro _GNU_SOURCE, to fix CPU_ZERO and CPU_SET undefined compile errors. Signed-off-by: Muhammad Falak R Wani Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/intel_pstate/run.sh b/tools/testing/selftests/intel_pstate/run.sh index bdaf37e92684..7868c106b8b1 100755 --- a/tools/testing/selftests/intel_pstate/run.sh +++ b/tools/testing/selftests/intel_pstate/run.sh @@ -32,7 +32,7 @@ EVALUATE_ONLY=0 max_cpus=$(($(nproc)-1)) # compile programs -gcc -o aperf aperf.c -lm +gcc aperf.c -Wall -D_GNU_SOURCE -o aperf -lm [ $? -ne 0 ] && echo "Problem compiling aperf.c." && exit 1 gcc -o msr msr.c -lm [ $? -ne 0 ] && echo "Problem compiling msr.c." && exit 1