From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752634AbbCAQuQ (ORCPT ); Sun, 1 Mar 2015 11:50:16 -0500 Received: from terminus.zytor.com ([198.137.202.10]:60227 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751435AbbCAQuL (ORCPT ); Sun, 1 Mar 2015 11:50:11 -0500 Date: Sun, 1 Mar 2015 08:49:44 -0800 From: tip-bot for Josh Boyer Message-ID: Cc: jwboyer@fedoraproject.org, Vineet.Gupta1@synopsys.com, mingo@kernel.org, jolsa@kernel.org, a.p.zijlstra@chello.nl, tglx@linutronix.de, acme@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org Reply-To: mingo@kernel.org, jolsa@kernel.org, Vineet.Gupta1@synopsys.com, jwboyer@fedoraproject.org, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de, acme@redhat.com, a.p.zijlstra@chello.nl In-Reply-To: <20150211162404.GA15522@hansolo.redhat.com> References: <20150211162404.GA15522@hansolo.redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf tools: Define _GNU_SOURCE on pthread_attr_setaffinity_np feature check Git-Commit-ID: 8eb733829cd17b9b66971f08110df7224d391d65 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 8eb733829cd17b9b66971f08110df7224d391d65 Gitweb: http://git.kernel.org/tip/8eb733829cd17b9b66971f08110df7224d391d65 Author: Josh Boyer AuthorDate: Wed, 11 Feb 2015 11:24:05 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 25 Feb 2015 12:17:38 -0300 perf tools: Define _GNU_SOURCE on pthread_attr_setaffinity_np feature check The man page for pthread_attr_set_affinity_np states that _GNU_SOURCE must be defined before pthread.h is included in order to get the proper function declaration. Define this in the Makefile. Without this defined, the feature check fails on a Fedora system with gcc5 and then the perf build later fails with conflicting prototypes for the function. Signed-off-by: Josh Boyer Cc: Jiri Olsa Cc: Peter Zijlstra Cc: Vineet Gupta Link: http://lkml.kernel.org/r/20150211162404.GA15522@hansolo.redhat.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/config/feature-checks/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/config/feature-checks/Makefile b/tools/perf/config/feature-checks/Makefile index 42ac05a..b32ff33 100644 --- a/tools/perf/config/feature-checks/Makefile +++ b/tools/perf/config/feature-checks/Makefile @@ -49,7 +49,7 @@ test-hello.bin: $(BUILD) test-pthread-attr-setaffinity-np.bin: - $(BUILD) -Werror -lpthread + $(BUILD) -D_GNU_SOURCE -Werror -lpthread test-stackprotector-all.bin: $(BUILD) -Werror -fstack-protector-all