Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3356264pxt; Tue, 10 Aug 2021 01:25:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5kt1N42Wlglb67iIEQvh3U5xQ2zI8qN8E9LpyexWUtrvbU8EPVPPne+9aTM70EjcyR+hs X-Received: by 2002:a5d:8596:: with SMTP id f22mr20996ioj.147.1628583952786; Tue, 10 Aug 2021 01:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628583952; cv=none; d=google.com; s=arc-20160816; b=QoIGjrCdPgGJf8PFp6an+OnTPndUuELW/KRwJkSso53sNYQVcDfioORLBwoA6jVnau u6bjK39dnJFn/h6ivYIrN/W0UH6NzZgKfgSMIO+mbhNACbWP8b3VBAGvMJthe1DdmZw5 pCOFTpeqjaDRlmzqoBURHcYAGA1d3sk3dCJiUOxNEudoBpVxs92Id7JZN8VdogBkOY5M QduPRlEFxA/SbGArTIOzZldfw0y+Lknn+Di11n3vHY8iF0r4LsJ5ZD8vfb1K8gfBEFwl Rp2hB4EWRPFO7L1lB4Ed8fp9DktYMdt9gZ2bFofyF4M+nOO23EY8bofx848TatLVoV3s HK0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=EmsMf35zTdaoUj3oiQt7gw4OgBcT1En81zKadpNn/No=; b=xtd/d/ldV7Ea1404khf/qwUt6GnUlMMcNM8PmbRADfKzsxIykJNi1mN4FduTTllcp+ FNLz9t0sZrkzqEkGiLev/JfZY/jiFzJHFq+OqV2UIOp5OjOlHCAD1f1x/YCRE0LLer5c cakVUAm/CS//Oj58PL20yaoZ/KPo/4J0JhiMGRHrhGcMA+0Af64sjL78W6jt0NTailed 5esP9RUzoTKrQN+Kb0s4ew0wGYV1Qq3dxWeG07G5VTMFMOUYJcur6Vr3mBnlmH+qRI1T v7tStbI/36kjuLn+xUUeaMIBVujnaH/3PeXGDvzUjbPDv2MBss9RsBJrGt5nLvG7Ansk YzTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=shz03upt; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i4si15232861ilv.135.2021.08.10.01.25.40; Tue, 10 Aug 2021 01:25:52 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=shz03upt; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236057AbhHJEz7 (ORCPT + 99 others); Tue, 10 Aug 2021 00:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231329AbhHJEz7 (ORCPT ); Tue, 10 Aug 2021 00:55:59 -0400 Received: from mail-oo1-xc33.google.com (mail-oo1-xc33.google.com [IPv6:2607:f8b0:4864:20::c33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1047C0613D3 for ; Mon, 9 Aug 2021 21:55:37 -0700 (PDT) Received: by mail-oo1-xc33.google.com with SMTP id h7-20020a4ab4470000b0290263c143bcb2so5030957ooo.7 for ; Mon, 09 Aug 2021 21:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EmsMf35zTdaoUj3oiQt7gw4OgBcT1En81zKadpNn/No=; b=shz03uptQm2duha7ZUkpvHh5KSx7nzGS2KJ6dhmO4x0Si2KLtPdk0kBOWmy6JCCefv rqwOp50eH2s07aFli9nZBL7AiawL3P5sZRTBlZTfdT2cWOO3Bvyz3gWuV+ZC476CIB9n /uIDBEXtKX8ARC3eNWzHugtQtVmifeiQXtrmH0APc88RHOMTY45PcTVZRhbHEB+KkG+X 9g5jnuWZyzqZym4AWAtKzcl31PpiAn14PKc0WiGdEoNpUB3BhPU1d75vuG/X/R835hfT bRADrOvxCY4lXjRgvQ+zOj/mKv2o+wH+34IvyyvPg2xxkv2AgyxVsVi739zbFBoDMzxd B8xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EmsMf35zTdaoUj3oiQt7gw4OgBcT1En81zKadpNn/No=; b=fi+btZTCmAeo+et/qeeCgHqts6/SXGkYq28KFl1qMPRHmbcJmff7kU06k+BfvLrhnZ KdMe3cz885+Shxbil/JM7a7ARb6zDzIsIHbDZLt5Sq/hicCDNWXc0InwY9ttg4W4D7nt XPUri0oQ0TdLXKk6M/uVqeMPy4K3OO1opGvEFsFXQBy5U9v443/6NU1wEkuRdVYBupnO tPii9nEsEKPf48I+r+rO7uUGiWKKcHBHzQLTG4YbcO4PKlZhk44g66mmlUqboT6/Uidc 85Sa/qah3S48ZK4h21DAZfoJmUXnrvJkB4dkKSnJ6LU/uD7eCd9R/ozUFZLZ7LfchDIK qasQ== X-Gm-Message-State: AOAM533Dv/dhCeEswwi1uGs2V48MEux1p3HF+nlpp4iO0DeY+eJc6l+a 4m+6g9BEe6PCxodsjEmmolD1738frKwRe490zKGfvA== X-Received: by 2002:a4a:c896:: with SMTP id t22mr8317214ooq.70.1628571336932; Mon, 09 Aug 2021 21:55:36 -0700 (PDT) MIME-Version: 1.0 References: <20210809152448.1810400-1-qperret@google.com> <20210809152448.1810400-22-qperret@google.com> In-Reply-To: <20210809152448.1810400-22-qperret@google.com> From: Fuad Tabba Date: Tue, 10 Aug 2021 06:55:00 +0200 Message-ID: Subject: Re: [PATCH v4 21/21] KVM: arm64: Make __pkvm_create_mappings static To: Quentin Perret Cc: maz@kernel.org, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, ardb@kernel.org, qwandor@google.com, dbrazdil@google.com, kernel-team@android.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Quentin, On Mon, Aug 9, 2021 at 5:25 PM Quentin Perret wrote: > > The __pkvm_create_mappings() function is no longer used outside of > nvhe/mm.c, make it static. > > Signed-off-by: Quentin Perret > --- Reviewed-by: Fuad Tabba Thanks, /fuad > arch/arm64/kvm/hyp/include/nvhe/mm.h | 2 -- > arch/arm64/kvm/hyp/nvhe/mm.c | 4 ++-- > 2 files changed, 2 insertions(+), 4 deletions(-) > > diff --git a/arch/arm64/kvm/hyp/include/nvhe/mm.h b/arch/arm64/kvm/hyp/include/nvhe/mm.h > index c76d7136ed9b..c9a8f535212e 100644 > --- a/arch/arm64/kvm/hyp/include/nvhe/mm.h > +++ b/arch/arm64/kvm/hyp/include/nvhe/mm.h > @@ -24,8 +24,6 @@ int hyp_back_vmemmap(phys_addr_t phys, unsigned long size, phys_addr_t back); > int pkvm_cpu_set_vector(enum arm64_hyp_spectre_vector slot); > int pkvm_create_mappings(void *from, void *to, enum kvm_pgtable_prot prot); > int pkvm_create_mappings_locked(void *from, void *to, enum kvm_pgtable_prot prot); > -int __pkvm_create_mappings(unsigned long start, unsigned long size, > - unsigned long phys, enum kvm_pgtable_prot prot); > unsigned long __pkvm_create_private_mapping(phys_addr_t phys, size_t size, > enum kvm_pgtable_prot prot); > > diff --git a/arch/arm64/kvm/hyp/nvhe/mm.c b/arch/arm64/kvm/hyp/nvhe/mm.c > index 6fbe8e8030f6..2fabeceb889a 100644 > --- a/arch/arm64/kvm/hyp/nvhe/mm.c > +++ b/arch/arm64/kvm/hyp/nvhe/mm.c > @@ -23,8 +23,8 @@ u64 __io_map_base; > struct memblock_region hyp_memory[HYP_MEMBLOCK_REGIONS]; > unsigned int hyp_memblock_nr; > > -int __pkvm_create_mappings(unsigned long start, unsigned long size, > - unsigned long phys, enum kvm_pgtable_prot prot) > +static int __pkvm_create_mappings(unsigned long start, unsigned long size, > + unsigned long phys, enum kvm_pgtable_prot prot) > { > int err; > > -- > 2.32.0.605.g8dce9f2422-goog >