From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753055AbcEPN1g (ORCPT ); Mon, 16 May 2016 09:27:36 -0400 Received: from lists.s-osg.org ([54.187.51.154]:47408 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751738AbcEPN1e (ORCPT ); Mon, 16 May 2016 09:27:34 -0400 Subject: Re: [PATCH] tools: testing: define the _GNU_SOURCE macro To: Muhammad Falak R Wani References: <1463141167-21889-1-git-send-email-falakreyaz@gmail.com> Cc: Prarit Bhargava , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan From: Shuah Khan Message-ID: <5739CABD.4070307@osg.samsung.com> Date: Mon, 16 May 2016 07:27:25 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <1463141167-21889-1-git-send-email-falakreyaz@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/13/2016 06:05 AM, Muhammad Falak R Wani wrote: > Add the macro _GNU_SOURCE, so that compilation does not terminate. What error are you seeing? Could you please send the compilation error log. thanks, -- Shuah > > Signed-off-by: Muhammad Falak R Wani > --- > 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 >