From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752652AbcC0LTT (ORCPT ); Sun, 27 Mar 2016 07:19:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38275 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750987AbcC0LTH (ORCPT ); Sun, 27 Mar 2016 07:19:07 -0400 Date: Sun, 27 Mar 2016 13:19:03 +0200 From: Jiri Olsa To: Sukadev Bhattiprolu Cc: Arnaldo Carvalho de Melo , Ingo Molnar , Michael Ellerman , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 1/1] perf tools: Fix build break on powerpc Message-ID: <20160327111903.GC4015@krava.sund.root.ku.dk> References: <20160326180146.GA32441@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160326180146.GA32441@us.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 26, 2016 at 11:01:47AM -0700, Sukadev Bhattiprolu wrote: > From 502e8236082412db1d33abfad95aaf14b539502e Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Sat, 26 Mar 2016 17:31:39 -0400 > Subject: [PATCH 1/1] perf tools: Fix build break on powerpc > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > 'Commit 531d2410635c ("perf tools: Do not include stringify.h from the > kernel sources")' seems to have accidentially removed the inclusion of > "util/header.h" from "arch/powerpc/util/header.c". > > "util/header.h" provides the prototype for get_cpuid() and is needed to > build perf on Powerpc. > > arch/powerpc/util/header.c:17:1: error: no previous prototype for > ‘get_cpuid’ [-Werror=missing-prototypes] > > Reported-by: Michael Ellerman > Signed-off-by: Sukadev Bhattiprolu > --- > tools/perf/arch/powerpc/util/header.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/perf/arch/powerpc/util/header.c b/tools/perf/arch/powerpc/util/header.c > index 6138bde..5111e34 100644 > --- a/tools/perf/arch/powerpc/util/header.c > +++ b/tools/perf/arch/powerpc/util/header.c > @@ -4,6 +4,7 @@ > #include > #include > #include > +#include "../../util/header.h" you could use just "header.h" right? jirka