From patchwork Wed Nov 22 12:18:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Durrant X-Patchwork-Id: 168331 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp1280830vqb; Wed, 22 Nov 2023 04:22:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IEyE+GFNBWj9Rb4j38Z2S5KBRzKxEQJODnUkKiCVkDZGb5TAuYdJRb+smroen/8443dF1G9 X-Received: by 2002:a05:6830:1443:b0:6ce:2985:a8c1 with SMTP id w3-20020a056830144300b006ce2985a8c1mr2455766otp.2.1700655774327; Wed, 22 Nov 2023 04:22:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700655774; cv=none; d=google.com; s=arc-20160816; b=QZR+AmwamKfJbZEwDPMLb2c+QVVvaohZ/gfbi7ac7YVMBNY6PkjFfcwC3tncedbcTP Bygbu1HAQlYhDSGMBI4w3pyEcE99eSNtrmTgFt7JBjiz6AiYt+xwvi4bx6pzlputQaN5 UKAnH40tPTx+/nPodpaBD/QZ4RnFQCyh7kkBVdwZsRPyarJ8kJPUYwZi0mX1lDTyT15O YkVox1DGN7TTV5wA8Lc7/W8XJtFBeVlHalwfC8fbGm1i54JcZKjvU8gx+os9bWEr9X0E 02n8BggsUa7ywWGstpteMn1GS4imbBwpBDUI6AAo0SY+lLUOX99lrEysd0/waZjc9Liy wAYw== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=WWVRVO4rk5Tr7MGrSTJbAXSf75JgVNtQ8ev+YYa16zs=; fh=Cum1qOF0YrAzH/5yQjcCBfU63B+V0l01YtzsDBRUOAc=; b=qk2/JdZJx3mvvIWkk9zPyrKB+d56ST9+rKsHWxEo1CVPY4+Ee6Fng8T5wJkYW6sgyJ vBw7+FSMqCKritJb3PysiBsCespklxFgJUrmVSgZsHFjCKu6B/TWBr5T0GX46bTaNyHV 77HWa/zMaPruMehxBUAnM2sRpHlaQEedtuHHMmnudxR5zDCtVYoiSIPpAd9HZaIKrjiK si/XfJ4kuyyzrKEyecOU4bFdvr9NbyIImR9PZgJU2mrYZWpRGKzVfAQMxjmWQNspscxW DuJnn6ZJHI2bhg5QRDqmHA7ADxdbtl7ZK5bQBHdSP3CaHqD+16xwKnc5wFBwifqDhImy 1vTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=YHpPBtDg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id f3-20020a631f03000000b005b9519d9e3esi12363679pgf.242.2023.11.22.04.22.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 04:22:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=YHpPBtDg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id DD52481B4AFA; Wed, 22 Nov 2023 04:20:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344176AbjKVMUP (ORCPT + 99 others); Wed, 22 Nov 2023 07:20:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344148AbjKVMUC (ORCPT ); Wed, 22 Nov 2023 07:20:02 -0500 Received: from mail.xenproject.org (mail.xenproject.org [104.130.215.37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B937D1BDC; Wed, 22 Nov 2023 04:19:35 -0800 (PST) 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=YHpPBtDgllsPPMNGytmD8nTJ13 xrb9PPeP7bEA14u11R/A+8XkBvaYMUK11V0ZzgdYACIDboguNUoPYNtVp2atXcQnQ6ABDiXGS93Zm zjvupMeVh3ljwGX1fgDoy0yxUpnPtJ4hjQ5kQWAw1uAqglRkRmOHY1FC/j6r68DSsjTk=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r5mCR-0004wz-G9; Wed, 22 Nov 2023 12:19:23 +0000 Received: from 54-240-197-231.amazon.com ([54.240.197.231] 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 1r5mCR-0004y9-6y; Wed, 22 Nov 2023 12:19:23 +0000 From: Paul Durrant To: David Woodhouse , Paul Durrant , Sean Christopherson , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 02/15] KVM: pfncache: remove unnecessary exports Date: Wed, 22 Nov 2023 12:18:09 +0000 Message-Id: <20231122121822.1042-3-paul@xen.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231122121822.1042-1-paul@xen.org> References: <20231122121822.1042-1-paul@xen.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 04:20:58 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783266829614137042 X-GMAIL-MSGID: 1783266829614137042 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);