stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Tuomas Tynkkynen <tuomas@tuxera.com>
Cc: stable@vger.kernel.org
Subject: Re: 4.9 backport request: perf tools: Fix build with ARCH=x86_64
Date: Sat, 20 Jan 2018 10:09:34 +0100	[thread overview]
Message-ID: <20180120090934.GA26235@kroah.com> (raw)
In-Reply-To: <1516439060.19716.5.camel@tuxera.com>

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 <jiada_wang@mentor.com>
> 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 <jiada_wang@mentor.com>
>     Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
>     Acked-by: Jiri Olsa <jolsa@kernel.org>
>     Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
>     Cc: Andi Kleen <ak@linux.intel.com>
>     Cc: Eugeniu Rosca <erosca@de.adit-jv.com>
>     Cc: Jan Stancek <jstancek@redhat.com>
>     Cc: Masami Hiramatsu <mhiramat@kernel.org>
>     Cc: Peter Zijlstra <peterz@infradead.org>
>     Cc: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
>     Cc: Rui Teng <rui.teng@linux.vnet.ibm.com>
>     Cc: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
>     Cc: Wang Nan <wangnan0@huawei.com>
>     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 <acme@redhat.com>

Now queued up, thanks.

greg k-h

      reply	other threads:[~2018-01-20  9:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-20  9:04 4.9 backport request: perf tools: Fix build with ARCH=x86_64 Tuomas Tynkkynen
2018-01-20  9:09 ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180120090934.GA26235@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=stable@vger.kernel.org \
    --cc=tuomas@tuxera.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).