From patchwork Mon Oct 17 11:51:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 13008663 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3803DC433FE for ; Mon, 17 Oct 2022 11:56:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vEWb07WJuL/DAY43HHv23OgnXYyckY4yzFACI5EXHPo=; b=OhERmM0D04K+Mz UNi3nKjEO3VttcK1Y4exwPQxo/JgEafIFrQhIzGhBW+8FLAEb2uBxQh6RW35tZKxyUpCprHAhHn2o sYaijC81XNIvFN3gADrsz2BuyC5E4Me6ut1b8cuGuziCWM5H2VgYklPHdr64lD3PUaMkNJ6DhCjqp /erq1F6FmJwLxQ78aoMzdnY6zSdKYG1dDZ9BKSweUR40urYq9Yr6NDPeDBR5HtNPNA/f+AscvTDt6 C8de1lGhJUKZ7b935WWw6XlrqAQItgCD6KgBfzrxz1FaXxuMVxNpPtQ9jrzDcpTjdkiwFh0tXQBB2 MniMddVmdilaxoZOjwvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okOiE-00BEzn-NK; Mon, 17 Oct 2022 11:55:18 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1okOfv-00BCe2-9P for linux-arm-kernel@lists.infradead.org; Mon, 17 Oct 2022 11:52:56 +0000 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 dfw.source.kernel.org (Postfix) with ESMTPS id D45CE61059; Mon, 17 Oct 2022 11:52:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46B2AC4347C; Mon, 17 Oct 2022 11:52:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666007574; bh=8f0p130EJ4EPgnQoABkRw1xEzbZ5piYUHc7zA8Cjng4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=njjAERXRRVn2n0XAb9kvgVw45DF4V7i3juqdjfan5ZZTzWOGrsuSQrQQfFcUbNUVn DXhc1SwRb7l9UofUcZ2gZ6RE7uM+wFzM8cZJ6xronCMSBJw2tQ8o+Fdv3SYrkZ1YU/ sSlKW76kS52sNpC2gW1t5sA2DnOmEycOrZ2jxo1y/z8uKWlBdWSQKJRyBXaU8PCo/F Okz1zRIQYhR38oAABLD/3dHKl6/NnXCoTxIBNm7wRrUHn5Lf7Lke7YeIQjfe28R8fC Tx46VWk+db9taIiwNmrqAayGRXsXI1uX4YpZNTN57QHu+SCD0v1XO+/4nSA7LGba4c JFFKfvgfg3i/Q== From: Will Deacon To: kvmarm@lists.linux.dev Cc: Will Deacon , Sean Christopherson , Vincent Donnefort , Alexandru Elisei , Catalin Marinas , James Morse , Chao Peng , Quentin Perret , Suzuki K Poulose , Mark Rutland , Fuad Tabba , Oliver Upton , Marc Zyngier , kernel-team@android.com, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 09/25] KVM: arm64: Include asm/kvm_mmu.h in nvhe/mem_protect.h Date: Mon, 17 Oct 2022 12:51:53 +0100 Message-Id: <20221017115209.2099-10-will@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221017115209.2099-1-will@kernel.org> References: <20221017115209.2099-1-will@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221017_045255_402288_5B924917 X-CRM114-Status: GOOD ( 11.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org nvhe/mem_protect.h refers to __load_stage2() in the definition of __load_host_stage2() but doesn't include the relevant header. Include asm/kvm_mmu.h in nvhe/mem_protect.h so that users of the latter don't have to do this themselves. Tested-by: Vincent Donnefort Signed-off-by: Will Deacon Reviewed-by: Philippe Mathieu-Daudé --- arch/arm64/kvm/hyp/include/nvhe/mem_protect.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kvm/hyp/include/nvhe/mem_protect.h b/arch/arm64/kvm/hyp/include/nvhe/mem_protect.h index 998bf165af71..3bea816296dc 100644 --- a/arch/arm64/kvm/hyp/include/nvhe/mem_protect.h +++ b/arch/arm64/kvm/hyp/include/nvhe/mem_protect.h @@ -8,6 +8,7 @@ #define __KVM_NVHE_MEM_PROTECT__ #include #include +#include #include #include #include