Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp37486pxf; Wed, 17 Mar 2021 14:41:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0gOyV0c4x41M/BCYtrJioRPjZ6IshU3kcYs/xD1gPeXHND+m23mdfwiH7saDkxx+/5/LX X-Received: by 2002:a17:906:9888:: with SMTP id zc8mr38224855ejb.310.1616017261322; Wed, 17 Mar 2021 14:41:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616017261; cv=none; d=google.com; s=arc-20160816; b=B3uzwQzt66jctGmDNxySdN6YIUZ1NX8McTvK3QgjqZoJLNawUrowTR55Ql7M3sHpwf /MK9N0r0DpyCm9Rt2qdEB3Y2wIqsg/6UPBkp0y2Fnax9CzZpQ+gUssKpreIOge8EuQpE 2rQy8A10UiBZP9DVqUhOgDVDW8B5WHxaqQhPaoIxnSVdEopibY+N6tMAVGtCrfy+2wua wbEMUj0+2oYQwEN9PdKs7dLYjZTLFn/qSeIAJiwWVsvlFmPSsOX4sMeH/xV8M7cIqHqm bO3m28kzglFKf5QQxUcJ4N09U5rv/6o/C+PcZk1VrwyM8qcaPVk7ottp8M4bHS1cB7NO eKbA== 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=OX89QgiEXQqxm+xCwOgzKVitiErGCbH8IrbBRUy/y48=; b=a3Y6rXQs2jy3WSwDAcopADTvuUEEkiBuceOOXtQFLw0zlw6GPyiaHNfdoK8GzP2Azt 8mZpj52e+Sz5h2wH6tjUVm7D3xQMhSZCllPRpDlAsXhdqyRSXZju1xKBGfCwTWIi/BPF C9VzNVWUmZjRbu5YG7aIb2RneP4oiB4XvltVgwQNKcqEI/McVUxMd35ZVWAxhN+S3eO4 FaIC6KB1G90IPc0cII1w6NIu/HOEzNjfJuoplVF9TI7E4s8Iee60KhMYwESW8Pj8ORpv 0JwLFtGpkIGY1TfD49GgEUFZzNe0eu7L/KzmhuQpWmKpn8resGU/uX3x8/NlPkQkUxu0 ZdNw== 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 cf6si35357ejb.272.2021.03.17.14.40.34; Wed, 17 Mar 2021 14:41:01 -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 S232810AbhCQSCu (ORCPT + 99 others); Wed, 17 Mar 2021 14:02:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:36932 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232852AbhCQSCk (ORCPT ); Wed, 17 Mar 2021 14:02:40 -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 51798AC1E; Wed, 17 Mar 2021 18:02:39 +0000 (UTC) Date: Wed, 17 Mar 2021 19:02:36 +0100 From: Borislav Petkov To: Ian Rogers Cc: Stephen Rothwell , 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: <20210317180236.GF32135@zn.tnic> References: <20210317150858.02b1bbc8@canb.auug.org.au> <20210317105432.GA32135@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 17, 2021 at 09:22:15AM -0700, Ian Rogers wrote: > The path also needs fixing. With the following > I was able to build for arm64 and powerpc. Thanks, I've updated and added your Tested-by. I'll give sfr a chance to test and queue it tomorrow. --- From d242b2639a23ed03d9aed94cf05b99af5343d4e9 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 Signed-off-by: Borislav Petkov Tested-by: Ian Rogers --- tools/arch/x86/lib/insn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/arch/x86/lib/insn.c b/tools/arch/x86/lib/insn.c index cd4dedde3265..c41f95815480 100644 --- a/tools/arch/x86/lib/insn.c +++ b/tools/arch/x86/lib/insn.c @@ -11,13 +11,13 @@ #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 -#include /* __ignore_sync_check__ */ +#include "../include/asm/emulate_prefix.h" /* __ignore_sync_check__ */ #define leXX_to_cpu(t, r) \ ({ \ -- 2.29.2 -- Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg