From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:38512 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751064AbeATJJg (ORCPT ); Sat, 20 Jan 2018 04:09:36 -0500 Date: Sat, 20 Jan 2018 10:09:34 +0100 From: Greg KH To: Tuomas Tynkkynen Cc: stable@vger.kernel.org Subject: Re: 4.9 backport request: perf tools: Fix build with ARCH=x86_64 Message-ID: <20180120090934.GA26235@kroah.com> References: <1516439060.19716.5.camel@tuxera.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1516439060.19716.5.camel@tuxera.com> Sender: stable-owner@vger.kernel.org List-ID: On Sat, Jan 20, 2018 at 11:04:20AM +0200, Tuomas Tynkkynen wrote: > Hi Greg, > > Please apply the following commit from 4.10 to 4.9.y to fix perf build > under certain conditions: > > commit 7a759cd8e8272ee18922838ee711219c7c796a31 > Author: Jiada Wang > Date: Sun Apr 9 20:02:37 2017 -0700 > > perf tools: Fix build with ARCH=x86_64 > > With commit: 0a943cb10ce78 (tools build: Add HOSTARCH Makefile variable) > when building for ARCH=x86_64, ARCH=x86_64 is passed to perf instead of > ARCH=x86, so the perf build process searchs header files from > tools/arch/x86_64/include, which doesn't exist. > > The following build failure is seen: > > In file included from util/event.c:2:0: > tools/include/uapi/linux/mman.h:4:27: fatal error: uapi/asm/mman.h: No such file or directory > compilation terminated. > > Fix this issue by using SRCARCH instead of ARCH in perf, just like the > main kernel Makefile and tools/objtool's. > > Signed-off-by: Jiada Wang > Tested-by: Arnaldo Carvalho de Melo > Acked-by: Jiri Olsa > Cc: Alexander Shishkin > Cc: Andi Kleen > Cc: Eugeniu Rosca > Cc: Jan Stancek > Cc: Masami Hiramatsu > Cc: Peter Zijlstra > Cc: Ravi Bangoria > Cc: Rui Teng > Cc: Sukadev Bhattiprolu > Cc: Wang Nan > Fixes: 0a943cb10ce7 ("tools build: Add HOSTARCH Makefile variable") > Link: http://lkml.kernel.org/r/1491793357-14977-2-git-send-email-jiada_wang@mentor.com > Signed-off-by: Arnaldo Carvalho de Melo Now queued up, thanks. greg k-h