Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp573891rdf; Tue, 21 Nov 2023 10:04:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/ZX38Ql2UJvp4ImRVzueq7DOO7CmLSN/JzFyFcAyzdBaJiuizGbEVNgEvsRRbPENUcqf8 X-Received: by 2002:a9d:67d4:0:b0:6d3:1f3e:4c4 with SMTP id c20-20020a9d67d4000000b006d31f3e04c4mr88701otn.0.1700589856488; Tue, 21 Nov 2023 10:04:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700589856; cv=none; d=google.com; s=arc-20160816; b=YlZc98vdB2bWIArl3jLYbPLR1l3x8J7emFFvi8ku/HPyUKU+NWHuGX9E6ZdvKJ/nDU HMVXvK8DO546hLDrSSIp8DywD5W6m0CHaCkDfUlOApUGkY3eWoaR18NRBB3/2+jSoZpx mGyvYOt/9z8svJRlkUCfHx4SCkp7u0VzW/kZLlZ+O7w9aLXQ+SYl+t5HJMcKNVmTagVr wZPm3MbqOY+DM8R3bWXUfCViMmxk14i3K4+m2t54beHVv63XnrO1B1zSQAJ1auLo9yGk +1/mw2nJcYHxpptqSWjDlm+LSBwOmiMp+UwSiMGgGIVrxAAmKKPGQVYIn/yEz1VZa3gN 9WVg== 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=d+wj+l8CL+bupVnn0zib9eh5PDmugTMXWIkaWAQeSQ8=; fh=Cum1qOF0YrAzH/5yQjcCBfU63B+V0l01YtzsDBRUOAc=; b=VMPUaOPJNfgz5D9Z70SfQRH0XCInqCy8cPp9NmEr3qTveYgTVgxKuoeI2O2cIGAdAp Rta8wQqdTCAhMTun2ZtRe5Z8EwrgkJfaYOKyDfRu6wiNIEf/xQFh2GN83sfzN8jTiwN8 rbw+Lfy5CQYthsxzc04bKc3AMtgr9YA9yPkk0Abc4HpqM7rZk0r18sCLzLEc1q4oqisg KOZFof2iQ77BP6TEd9TiDcfwd2IHZXzSUYdEkrOHN3oi7FDf3mtQCJXPIvZ3Au9Qs3P9 huH+a+Q1iESTNx230poK9GG5bN0j628/LBI39BZ1D2/BbwVqNvEdh7RrA5Uk5YpIeLxK 3u8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=a0KAu34m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id d15-20020a056830138f00b006ce283f0b81si3903205otq.250.2023.11.21.10.04.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 10:04:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=a0KAu34m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 3A59B81552FF; Tue, 21 Nov 2023 10:04:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234370AbjKUSDb (ORCPT + 99 others); Tue, 21 Nov 2023 13:03:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234304AbjKUSD1 (ORCPT ); Tue, 21 Nov 2023 13:03:27 -0500 Received: from mail.xenproject.org (mail.xenproject.org [104.130.215.37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F3CB198; Tue, 21 Nov 2023 10:03:23 -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=d+wj+l8CL+bupVnn0zib9eh5PDmugTMXWIkaWAQeSQ8=; b=a0KAu34mBLFDI5YEZLpyHYV0k/ D7Gu8yTrPR5BD4vS9yDuZkYNdPhy3oC54B+dbK906FcUTmjqZHbVjTP4wcITiEJD0kzuQXgYHThjy bcdsYEUjNr9x5yJkMndY/5oK0dPleRgxcQfErkx42HVgGTCx1yMqAtvAKjSDcqwDVdF8=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r5V5W-00084D-OY; Tue, 21 Nov 2023 18:03:06 +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 1r5V5W-0004Z3-Ev; Tue, 21 Nov 2023 18:03:06 +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 v8 02/15] KVM: pfncache: remove unnecessary exports Date: Tue, 21 Nov 2023 18:02:10 +0000 Message-Id: <20231121180223.12484-3-paul@xen.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231121180223.12484-1-paul@xen.org> References: <20231121180223.12484-1-paul@xen.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 10:04:03 -0800 (PST) From: Paul Durrant There is 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 --- 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); -- 2.39.2