From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp04.au.ibm.com (e23smtp04.au.ibm.com [202.81.31.146]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e23smtp04.au.ibm.com", Issuer "GeoTrust SSL CA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 9B4542C008F for ; Tue, 20 Nov 2012 21:43:52 +1100 (EST) Received: from /spool/local by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 20 Nov 2012 20:38:31 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qAKAXDs356950792 for ; Tue, 20 Nov 2012 21:33:14 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qAKAhgdH011805 for ; Tue, 20 Nov 2012 21:43:43 +1100 Message-ID: <50AB5EDC.20009@in.ibm.com> Date: Tue, 20 Nov 2012 16:13:40 +0530 From: "Suzuki K. Poulose" MIME-Version: 1.0 To: Sukadev Bhattiprolu Subject: Re: [PATCH 1/4] perf/powerpc: Use uapi/unistd.h to fix build error References: <20121107191818.GA16211@us.ibm.com> In-Reply-To: <20121107191818.GA16211@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: Peter Zijlstra , robert.richter@amd.com, Anton Blanchard , linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, Ingo Molnar , Paul Mackerras , Arnaldo Carvalho de Melo List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 11/08/2012 12:48 AM, Sukadev Bhattiprolu wrote: > > From b8beef080260c1625c8f801105504a82005295e5 Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Wed, 31 Oct 2012 11:21:28 -0700 > Subject: [PATCH 1/4] perf/powerpc: Use uapi/unistd.h to fix build error > > Use the 'unistd.h' from arch/powerpc/include/uapi to build the perf tool. > > Signed-off-by: Sukadev Bhattiprolu Without this patch, I couldn't build perf on powerpc, with 3.7.0-rc2 Tested-by: Suzuki K. Poulose Thanks Suzuki > --- > tools/perf/perf.h | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/tools/perf/perf.h b/tools/perf/perf.h > index 054182e..f4952da 100644 > --- a/tools/perf/perf.h > +++ b/tools/perf/perf.h > @@ -26,7 +26,7 @@ void get_term_dimensions(struct winsize *ws); > #endif > > #ifdef __powerpc__ > -#include "../../arch/powerpc/include/asm/unistd.h" > +#include "../../arch/powerpc/include/uapi/asm/unistd.h" > #define rmb() asm volatile ("sync" ::: "memory") > #define cpu_relax() asm volatile ("" ::: "memory"); > #define CPUINFO_PROC "cpu" >