Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1369484imi; Sat, 23 Jul 2022 03:56:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vSYZUWPJxjjmVj6EF18IsoJBUOUEmXuNuawrsdGrVe5QZinYMCZu4wuHRS0cq5yMo+4xjh X-Received: by 2002:a17:90b:1b4f:b0:1f0:e99:ecb0 with SMTP id nv15-20020a17090b1b4f00b001f00e99ecb0mr4526581pjb.204.1658573768537; Sat, 23 Jul 2022 03:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658573768; cv=none; d=google.com; s=arc-20160816; b=YT1ggS6FqrGaHXNvoikoRsN99ic2qt8S+QHgItJ7pz8fS422neyt2yiD/JbpAwv+eI PVvzDdkpD2UusQoPz2Si2JyqSqNsmWf87zI/Ni4y2a9lfy5vZFIzjlYf9ZAJlpHG+qi9 OmbgpLUfq4VbsBrV1g9OCuKI8LK2wz0G2g23nWoIwTe6ZhDYuQfCD6+VFvAtH4pbMsbs yJ0+geHqC8mjBqO8h98GZq6FmO11l58+4q4N8nd8QlyXCzoQLQCzHDVOZWmEhYnkNYPA w3+exElDFr+A6bkw4gt08K+d4y6H9z1CLRYH8ChR5JoUT6AIX6xKckncy0ksASwKGmcF 2mNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=97GJmSMdWuLQuu3g4TGJ7TKujLT0TLXNtxEeLmbRX2c=; b=VOIpcOB/Yb995nPmW+OVWiXjzYmzQhns/j3dbdLnzpiW8rKnkb/PWPX7zmifM89DS2 F+VQeOLzhz8JhNUCLDY5wx6YfQ0hXjbdIwjcE3borOgcz2Wio8xplcZQLgytnCK6mnYN 4nQey8oSm+WTIBJRzBJrgX/BtgYhFnDf5diGgi13tl0Vf8PsHhLeE4JztSuoguA1M/Fp 2nZdilbsQWPIgSGCaEk/moAJ8VvTKx59xgyPnDvo/GlVBOItt0g/O5Ws1BKVUvbxVn6R b0K+6qMtG955H8Qzvt4QYDlMcIRBWjZoO0v0pT+DWSjt//lsOoSZ62c8vqfDaWq/K/Xs fbXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="E1hp6y/i"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a631d03000000b003fae0c67055si8332465pgd.777.2022.07.23.03.55.53; Sat, 23 Jul 2022 03:56:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="E1hp6y/i"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238973AbiGWKMA (ORCPT + 99 others); Sat, 23 Jul 2022 06:12:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239469AbiGWKJk (ORCPT ); Sat, 23 Jul 2022 06:09:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5A428049C; Sat, 23 Jul 2022 03:02:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4CE70B82C1F; Sat, 23 Jul 2022 10:02:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97B67C341C0; Sat, 23 Jul 2022 10:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658570568; bh=lqnSkCXXiV+5UZ7xk1zTCH+Z/JTRzCyyNJlN1tBUpOg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E1hp6y/iDqo9fN9wiyrOHzM2+x7ptinJqwDL60ewCbyYG+KMpn6VpziqqKy/R+sN5 CvHnoqNzSKckDeZTTqfvf4j4myAzLNxX/7EWxjcODGAcfpeOW4IA35NGfq8yPh9WCY RaQz/ykCGqIvW13tXWuteKS3mwT7YTwP1tOagNv8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ian Rogers , Stephen Rothwell , Borislav Petkov , Florian Fainelli Subject: [PATCH 5.10 131/148] tools/insn: Restore the relative include paths for cross building Date: Sat, 23 Jul 2022 11:55:43 +0200 Message-Id: <20220723095301.021493138@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220723095224.302504400@linuxfoundation.org> References: <20220723095224.302504400@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Borislav Petkov commit 0705ef64d1ff52b817e278ca6e28095585ff31e1 upstream. 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 Tested-by: Stephen Rothwell Link: https://lkml.kernel.org/r/20210317150858.02b1bbc8@canb.auug.org.au Cc: Florian Fainelli Signed-off-by: Greg Kroah-Hartman --- tools/arch/x86/lib/insn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/tools/arch/x86/lib/insn.c +++ b/tools/arch/x86/lib/insn.c @@ -10,13 +10,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__ */ /* Verify next sizeof(t) bytes can be on the same instruction */ #define validate_next(t, insn, n) \