Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754130AbbBKUjA (ORCPT ); Wed, 11 Feb 2015 15:39:00 -0500 Received: from mail.kernel.org ([198.145.29.136]:37312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752638AbbBKUi7 (ORCPT ); Wed, 11 Feb 2015 15:38:59 -0500 Date: Wed, 11 Feb 2015 17:39:20 -0300 From: Arnaldo Carvalho de Melo To: Josh Boyer Cc: Vineet Gupta , Jiri Olsa , Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf tools: Define _GNU_SOURCE on pthread_attr_setaffinity_np feature check Message-ID: <20150211203920.GK24251@kernel.org> References: <20150211162404.GA15522@hansolo.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150211162404.GA15522@hansolo.redhat.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 857 Lines: 20 Em Wed, Feb 11, 2015 at 11:24:05AM -0500, Josh Boyer escreveu: > 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 > --- > tools/perf/config/feature-checks/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks, applied -- 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/