Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp226327pxf; Wed, 17 Mar 2021 03:58:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIpsv4Sx4cokONkr57/kh4B3Nz0pl9ox9Q2Xj3kD1NzscIGiQs1fymxWKiEDCV3829kUEK X-Received: by 2002:a17:906:495a:: with SMTP id f26mr33882468ejt.271.1615978700599; Wed, 17 Mar 2021 03:58:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615978700; cv=none; d=google.com; s=arc-20160816; b=aitTL/A0YlRC0RLS5QXGqYUQltxbrsYHeSuEiWniR07RLDyZ7SiSQ7blNFkRtxjKDU NE+U318xFF0ZCT2EFOF6dYc/DBm+JUX1jkHefWcp6TVhfpOwqft4kDoGg31yRNiODBJr 2ysyR1UZcHk52r3hXFS4ODUAvxZIMQtbHz1G0eTO+3GJYcYj6TKGP9Zt06umrt2IKHGk 6VUOWsLj8QwZt8dtF74EUIuJcNSS14/+ZUTNCTVZOIErda0ByIGgFjuH7z3lnghfMT6y ljImA/leVM+eaWDrAjfi/dCC9iljO/r9oU0PUyVk9gZOPLO11BborPYVp9MCsB8+ifNA cHoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qAjAlWOHXvdnW54IJbePf1x472IDkJ86jIgmSVTpdmQ=; b=gHPjT0W2eyV+Ve7J85BLHlUNSxTMm/u8ZmQS54SFZ9ci0GK+gwT11bLInK0unewAoq paT+QZAEHmj5qNc5CxZVBYmSr1j2TnDdw+h17e61btoRA6LTgE6FNcFEm6ITrdel7c6C Ae44xpdpRN8NUvSDRsSNV/OgQsRGbgxv/B+T/we+m7U0eSAm6EE5OIb2waySBLyCHCb8 AwnbzBeFw3u+DKHtOFSIML8wQe4yhZoIrALvdP75NbXWZm1rWjfPrXnDtOmq7b7sXOAO V+wPIRhQYm4lLRu1gqqRa0AfbjG4ghj/Sv1pLqqs4VYHNYIxnpSoaBGshPKo2gSyDwwo VYWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pj10si16253782ejb.348.2021.03.17.03.57.57; Wed, 17 Mar 2021 03:58:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230484AbhCQKym (ORCPT + 99 others); Wed, 17 Mar 2021 06:54:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:36966 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230473AbhCQKyh (ORCPT ); Wed, 17 Mar 2021 06:54:37 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2AB8CAC75; Wed, 17 Mar 2021 10:54:36 +0000 (UTC) Date: Wed, 17 Mar 2021 11:54:32 +0100 From: Borislav Petkov To: Stephen Rothwell , Ian Rogers Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the tip tree Message-ID: <20210317105432.GA32135@zn.tnic> References: <20210317150858.02b1bbc8@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210317150858.02b1bbc8@canb.auug.org.au> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + Ian. On Wed, Mar 17, 2021 at 03:08:58PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the tip tree, today's linux-next build (native perf) > failed like this: > > In file included from util/intel-pt-decoder/intel-pt-insn-decoder.c:15: > util/intel-pt-decoder/../../../arch/x86/lib/insn.c:14:10: fatal error: asm/inat.h: No such file or directory > 14 | #include /*__ignore_sync_check__ */ > | ^~~~~~~~~~~~ > > This is a powerpc build of perf. I can't see what caused this failure, > so I have used the version of the tip tree from next-20210316 for today. Yah, this has come up in the past during review but the wrong version somehow snuck in, sorry. ;-\ Can you guys verify this fixes the build issue? I don't have a ppc build setup. Thx. --- From 50d91054fc421e2a90923706d5ca79e941e28300 Mon Sep 17 00:00:00 2001 From: Borislav Petkov Date: Wed, 17 Mar 2021 11:33:04 +0100 Subject: [PATCH] tools/insn: Restore the relative include paths for cross building Building perf on ppc causes: In file included from util/intel-pt-decoder/intel-pt-insn-decoder.c:15: util/intel-pt-decoder/../../../arch/x86/lib/insn.c:14:10: fatal error: asm/inat.h: No such file or directory 14 | #include /*__ignore_sync_check__ */ | ^~~~~~~~~~~~ Restore the relative include paths so that the compiler can find the headers. Fixes: 93281c4a9657 ("x86/insn: Add an insn_decode() API") Reported-by: Ian Rogers Reported-by: Stephen Rothwell NOT-Signed-off-by: Borislav Petkov --- tools/arch/x86/lib/insn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/arch/x86/lib/insn.c b/tools/arch/x86/lib/insn.c index cd4dedde3265..999fbd4c9bea 100644 --- a/tools/arch/x86/lib/insn.c +++ b/tools/arch/x86/lib/insn.c @@ -11,8 +11,8 @@ #else #include #endif -#include /*__ignore_sync_check__ */ -#include /* __ignore_sync_check__ */ +#include "../include/asm/inat.h" /* __ignore_sync_check__ */ +#include "../include/asm/insn.h" /* __ignore_sync_check__ */ #include #include -- 2.29.2 -- Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg