public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools: testing: define the _GNU_SOURCE macro
@ 2016-05-13 12:05 Muhammad Falak R Wani
  2016-05-16 13:27 ` Shuah Khan
  0 siblings, 1 reply; 4+ messages in thread
From: Muhammad Falak R Wani @ 2016-05-13 12:05 UTC (permalink / raw)
  To: Shuah Khan; +Cc: Prarit Bhargava, linux-kselftest, linux-kernel

Add the macro _GNU_SOURCE, so that compilation does not terminate.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
---
 tools/testing/selftests/intel_pstate/run.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/intel_pstate/run.sh b/tools/testing/selftests/intel_pstate/run.sh
index bdaf37e..7868c10 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
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-05-16 16:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-13 12:05 [PATCH] tools: testing: define the _GNU_SOURCE macro Muhammad Falak R Wani
2016-05-16 13:27 ` Shuah Khan
2016-05-16 14:02   ` Muhammad Falak R Wani
2016-05-16 16:14     ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox