Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2605408lqp; Mon, 25 Mar 2024 04:18:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXd3svhAuibwDRGW5kv6tu3JFRr3e8HQC+KNpxXcRSDEA6ajCvrojzY0natoAZNYXPTSJ2zdu4/eCRNA2J3gCzQpF5S11SEt20jqBqTg== X-Google-Smtp-Source: AGHT+IHrMfxNtSnXrSDOJE1qk+vCAwLBGzPn+xtSwjAtLqqP56WtkEHx7QyRNau3dD21/3/Gz34V X-Received: by 2002:a05:6871:5ce:b0:22a:e26:75d3 with SMTP id v14-20020a05687105ce00b0022a0e2675d3mr5612968oan.42.1711365510074; Mon, 25 Mar 2024 04:18:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711365510; cv=pass; d=google.com; s=arc-20160816; b=k/GoRQIOr8OjNsOl4/m77V4LVzpQLuD6RBV7gjiP/6+AFoWaM9jr0mKgU+k2WG7hnC hBT6ZcUacptnbCyJvIiGIi5tr5iUMMZJURxu7Bsq5c4IvfbViACDSye9UZTqxG67Oif8 kTmnBaXK+CesNxZ4voWQvMknLkdu8GN/GFuLBJnGY5Ws0+VmqUg5uWpVliw/WqquNhxd /+HmuDIaV03I/jOJLkFykcR3Q1IFtyiy+Wr5TJfiziXcxcGk8ggwLnbOpT8bl0db7yk+ VeOl/qbteAuuGhXrxPxu9EaA+8TVXnwd0NDOR4FTEDqemE+dnuX9H7D/XlsnsOKCgpyH SOSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=z7RsczLG/s5Mex18CP+F3XdnA0fuRbJ7fB019r7Dh0g=; fh=99TKCR0GcyRDBmj0+bgJjCtQtvtkr7gbq7lIxbjMt5w=; b=m/qDqc4m230WFJ+cWp9iRHZBTzv8ozLtabL9U5mDJWQF72VsNh9syMn7nHUdK+O+jH yaRmy6QZy63VAuvokI3V/YSsTUcUc9eT4+zeKezVyR3ON/P1iy3ipJ4WY1JNcccuua7Q Uyk6TYuJDtwKnxnLnL4Xwte/L0JXxW+qPW4JsAMUPGZLNXYljvN+82q+4Ybonx4iz7XA zvHV33XIxghmDzR0Fyrb3Mt3uEDaYWoIM9IxZHbypPelE//HcwpDdvq5L1K6G/tmHb5f xmjukgr6iIaUOIo4/OqcwJ2pEAAS3Z30bV8MLYqcriH3iTXNletsmzbYCjaFuSRpL/u7 vFxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=goxU7WUm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116124-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116124-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j70-20020a638b49000000b005dc6375e189si7338975pge.396.2024.03.25.04.18.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 04:18:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116124-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=goxU7WUm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116124-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116124-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 03654B2EFFD for ; Mon, 25 Mar 2024 10:10:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67F7E3A98D5; Mon, 25 Mar 2024 03:31:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="goxU7WUm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B2A617A387; Sun, 24 Mar 2024 23:40:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323657; cv=none; b=Ar9TDigdg/Gp40/A4/RlDX1XMl/wuEaKXHJgCfMrqz+bCA05b1xUR/+Uk1kWx7S58oGs8Epx5bLY0jYVH6ahn/ADfkho9G8Y1Wpn9XzyKkWO0G2WLz2LxZ0i221KvLzZ7GWdBDedq8BOr0s6Or6mMhuZkl4KhYaL7YFODoK2KxM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323657; c=relaxed/simple; bh=h4lItqMeOzYnNgZPMXZ1qCGx/yc3jP4yGmrQlDOCSYw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Rn6cGF/EkGtwQMi8qYvtSNF4CMkqFs3M+3hAwSnPsCD7Rzgc7fhN4bm6eKyMbgep4Z1zNeJZ9ncLuxGoU0mS387Kfj6Pu1sH3mu9mYBDHSVCdqxb5RDgqjKKK6xHXG+ifcD8NQ4O1RhxlGIA7zj13JB+rZ2TVmVW3G3UNPLORxU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=goxU7WUm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FAC1C433F1; Sun, 24 Mar 2024 23:40:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711323656; bh=h4lItqMeOzYnNgZPMXZ1qCGx/yc3jP4yGmrQlDOCSYw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=goxU7WUmE17Xr0I9m+si5NqF0ckHae5ATLZocolopuZz7YzcHlkB+rUZXY6ICTlKu 0I5octrrZQIK5h9xe65x/41R/GTG49CekkGVf3NggzOsWR3vQg1uaiLaE3ONA1O/Hl v73Jit3D2KHgFCteslR54FY8e8y6ceVLQjLB6HZUyezild/uDEu7lcpSy2eSleAlg+ p9o+VPuoQmolSEGGNeMFI5VcBe/pxhSPytQI5Tl4mhj2dIiDD4AVFzBSyoRZuXpIUs TRAB6FpBjXzjN5rgHGUjN4kqIG7Kj6Am1F8tRivx1Y1nbedkts6k0y/3/keH7NSZJa r7xZghNk40K8w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "Borislav Petkov (AMD)" , Omar Sandoval , Sasha Levin Subject: [PATCH 5.10 028/238] x86/paravirt: Fix build due to __text_gen_insn() backport Date: Sun, 24 Mar 2024 19:36:56 -0400 Message-ID: <20240324234027.1354210-29-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324234027.1354210-1-sashal@kernel.org> References: <20240324234027.1354210-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: "Borislav Petkov (AMD)" The Link tag has all the details but basically due to missing upstream commits, the header which contains __text_gen_insn() is not in the includes in paravirt.c, leading to: arch/x86/kernel/paravirt.c: In function 'paravirt_patch_call': arch/x86/kernel/paravirt.c:65:9: error: implicit declaration of function '__text_gen_insn' \ [-Werror=implicit-function-declaration] 65 | __text_gen_insn(insn_buff, CALL_INSN_OPCODE, | ^~~~~~~~~~~~~~~ Add the missing include. Reported-by: Omar Sandoval Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/ZeYXvd1-rVkPGvvW@telecaster Signed-off-by: Sasha Levin --- arch/x86/kernel/paravirt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c index 5bea8d93883a2..f0e4ad8595ca7 100644 --- a/arch/x86/kernel/paravirt.c +++ b/arch/x86/kernel/paravirt.c @@ -31,6 +31,7 @@ #include #include #include +#include /* * nop stub, which must not clobber anything *including the stack* to -- 2.43.0