From patchwork Tue Dec 19 16:10:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Durrant X-Patchwork-Id: 181070 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2050447dyi; Tue, 19 Dec 2023 08:16:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGv42dYjt0LYHE4sdFZ5vflAu3C+9RuEN5UuvnsBROUAgOiKWORsWcMx9nSovgtTuUBo5Hd X-Received: by 2002:aa7:d957:0:b0:54c:4837:a667 with SMTP id l23-20020aa7d957000000b0054c4837a667mr8759743eds.84.1703002569070; Tue, 19 Dec 2023 08:16:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703002569; cv=none; d=google.com; s=arc-20160816; b=niXO/jywD6LgLHQ6sZjqAPSWIBj6CQoDIqorZddgTjfbNP6YMeUM5dubSV57ug5I4C B4wO2dhwE6XCflXt/KkT2Ks6d6XGm9WHVLW6lI7YFb3N8ayNfitWr3AUyECxPEZ2ZavV qav16cTvWHg3I7mujYv+9EETqmSfBLfUq4KaftC99wAOI7hkCJnoYb6VVR4P5isUcTQu LqJ84sCNPe1efqMgLY0TU4EfV461qdSmPCoxL4dJeUIfr+5nnYim9s/j9Y3yxzId2/0I 11aEHYX/ijHP81lSsAa2RWv3jfQ5b6AyGoJkf6gSYemTwTJsKiDwfH1e4teQKVg04jLr fY+g== ARC-Message-Signature: i=1; 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:to:from:dkim-signature; bh=WWVRVO4rk5Tr7MGrSTJbAXSf75JgVNtQ8ev+YYa16zs=; fh=aAPqvXm40pY9772UiBOljEePwtz/3Q0zIOpw238tj3M=; b=K4Zt49V2se9nR5O+p73m1jhDuCMJz6u9KbpURQaSpPwX3DoSfCSD/EYekCWZCC4sTc ZIt3SgpFowpuC3USSffikj/zjIB0Z7zmogNRJSkQEkpOq6Ua9HPbgqHnvUyR+6T0eVbt 9e4wnASUF/14HQ6ToPkBLJNC3WMyrpljsizIRxjEvnHh1FI4+WGFQvwr0dIyZhnKLgSJ eC2vKWMgirNZbh2WOwYFsaLc7KqF9FpyLWrQCKP9mCl4wqdNmuPtRR+PKYcu5/UIGtqG yl9erzsuEQsOqQMmWFPWhsrr/4kJ2k51Yttx6mKtpQ9pAOozBAW3xysmh08eePiHhZUW F+xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=LrRq5o+i; spf=pass (google.com: domain of linux-kernel+bounces-5541-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5541-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cz4-20020a0564021ca400b00553aef3307fsi228643edb.181.2023.12.19.08.16.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 08:16:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5541-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=LrRq5o+i; spf=pass (google.com: domain of linux-kernel+bounces-5541-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5541-ouuuleilei=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 78B861F24C9D for ; Tue, 19 Dec 2023 16:16:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1CA92111E; Tue, 19 Dec 2023 16:15:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xen.org header.i=@xen.org header.b="LrRq5o+i" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.xenproject.org (mail.xenproject.org [104.130.215.37]) (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 912C431744; Tue, 19 Dec 2023 16:15:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xen.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:To:From; bh=WWVRVO4rk5Tr7MGrSTJbAXSf75JgVNtQ8ev+YYa16zs=; b=LrRq5o+isJm79kkMIUzOc8T8dD gO4K1UkkVx28nEK7+jNFDC7WqCDYlFsRrz5Jt1v6uVk0Q8vHjGvdniB7aHlPB6CAf2F5DGv1dDZ3t fnfB9ktIJjY+pFAPm5aehVH+I66iV1tT4RURciXQnow4TvXW3Xi3iy+eVVDUxdrrFK04=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rFcjs-0005Li-F0; Tue, 19 Dec 2023 16:14:36 +0000 Received: from 54-240-197-226.amazon.com ([54.240.197.226] helo=REM-PW02S00X.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rFcjs-0005h9-6F; Tue, 19 Dec 2023 16:14:36 +0000 From: Paul Durrant To: Paolo Bonzini , Jonathan Corbet , Sean Christopherson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , David Woodhouse , Paul Durrant , Shuah Khan , kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v11 02/19] KVM: pfncache: remove unnecessary exports Date: Tue, 19 Dec 2023 16:10:52 +0000 Message-Id: <20231219161109.1318-3-paul@xen.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231219161109.1318-1-paul@xen.org> References: <20231219161109.1318-1-paul@xen.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785727621563263285 X-GMAIL-MSGID: 1785727621563263285 From: Paul Durrant There is no need for the existing kvm_gpc_XXX() functions to be exported. Clean up now before additional functions are added in subsequent patches. Signed-off-by: Paul Durrant Reviewed-by: David Woodhouse --- Cc: Sean Christopherson Cc: David Woodhouse Cc: Paolo Bonzini v8: - New in this version. --- virt/kvm/pfncache.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/virt/kvm/pfncache.c b/virt/kvm/pfncache.c index 10842f1eeeae..f3571f44d9af 100644 --- a/virt/kvm/pfncache.c +++ b/virt/kvm/pfncache.c @@ -94,7 +94,6 @@ bool kvm_gpc_check(struct gfn_to_pfn_cache *gpc, unsigned long len) return true; } -EXPORT_SYMBOL_GPL(kvm_gpc_check); static void *gpc_map(kvm_pfn_t pfn) { @@ -346,7 +345,6 @@ int kvm_gpc_refresh(struct gfn_to_pfn_cache *gpc, unsigned long len) { return __kvm_gpc_refresh(gpc, gpc->gpa, len); } -EXPORT_SYMBOL_GPL(kvm_gpc_refresh); void kvm_gpc_init(struct gfn_to_pfn_cache *gpc, struct kvm *kvm, struct kvm_vcpu *vcpu, enum pfn_cache_usage usage) @@ -363,7 +361,6 @@ void kvm_gpc_init(struct gfn_to_pfn_cache *gpc, struct kvm *kvm, gpc->pfn = KVM_PFN_ERR_FAULT; gpc->uhva = KVM_HVA_ERR_BAD; } -EXPORT_SYMBOL_GPL(kvm_gpc_init); int kvm_gpc_activate(struct gfn_to_pfn_cache *gpc, gpa_t gpa, unsigned long len) { @@ -388,7 +385,6 @@ int kvm_gpc_activate(struct gfn_to_pfn_cache *gpc, gpa_t gpa, unsigned long len) } return __kvm_gpc_refresh(gpc, gpa, len); } -EXPORT_SYMBOL_GPL(kvm_gpc_activate); void kvm_gpc_deactivate(struct gfn_to_pfn_cache *gpc) { @@ -426,4 +422,3 @@ void kvm_gpc_deactivate(struct gfn_to_pfn_cache *gpc) gpc_unmap(old_pfn, old_khva); } } -EXPORT_SYMBOL_GPL(kvm_gpc_deactivate);