Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755120AbbBRSax (ORCPT ); Wed, 18 Feb 2015 13:30:53 -0500 Received: from terminus.zytor.com ([198.137.202.10]:40977 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755088AbbBRSav (ORCPT ); Wed, 18 Feb 2015 13:30:51 -0500 Date: Wed, 18 Feb 2015 10:30:33 -0800 From: tip-bot for Josh Boyer Message-ID: Cc: tglx@linutronix.de, Vineet.Gupta1@synopsys.com, jwboyer@fedoraproject.org, a.p.zijlstra@chello.nl, hpa@zytor.com, jolsa@kernel.org, linux-kernel@vger.kernel.org, mingo@kernel.org, acme@redhat.com Reply-To: jolsa@kernel.org, mingo@kernel.org, linux-kernel@vger.kernel.org, acme@redhat.com, tglx@linutronix.de, Vineet.Gupta1@synopsys.com, jwboyer@fedoraproject.org, a.p.zijlstra@chello.nl, hpa@zytor.com In-Reply-To: <20150211162404.GA15522@hansolo.redhat.com> References: <20150211162404.GA15522@hansolo.redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Define _GNU_SOURCE on pthread_attr_setaffinity_np feature check Git-Commit-ID: 39f5704399042fff5f0d5f6af32bbbc3e787a897 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 Content-Length: 1868 Lines: 45 Commit-ID: 39f5704399042fff5f0d5f6af32bbbc3e787a897 Gitweb: http://git.kernel.org/tip/39f5704399042fff5f0d5f6af32bbbc3e787a897 Author: Josh Boyer AuthorDate: Wed, 11 Feb 2015 11:24:05 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Feb 2015 17:38:55 -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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/