From patchwork Tue Nov 21 18:02:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Durrant X-Patchwork-Id: 167865 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp814609vqb; Tue, 21 Nov 2023 10:03:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEfhAw2OXCkZ1dOEIYmmut8A+LpbDOHd+A7RsNiuJzyxZLGzesAyhW2kwKsSvBPzDJD+xEI X-Received: by 2002:a05:6870:7f15:b0:1f9:4aea:2a07 with SMTP id xa21-20020a0568707f1500b001f94aea2a07mr7029459oab.41.1700589836534; Tue, 21 Nov 2023 10:03:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700589836; cv=none; d=google.com; s=arc-20160816; b=rzXLslGFaGF5+KYvt/igLu57s/4hg/77Fh/nid/wEllumfbinlfPdzhA8FkLe1ezDB DqE2FyE84DsxchVeTPrxnM6L9B/etltV+eurnHG6fFdw5Cde+xqx50NAa8pjI64hP5Bv 2Pbp9QoE3KTu7rrK360yRC2FlS7Qxu+lJZXxNq21hHPQqWdXmT9TCuCiQzPEf0KaBlKD diUPiujvElwa0V+/qpiW8MkuznCeF1MBUA/l5C1m781lk32BvBIDmdoc0RyKpBQaHhEx DX9y9VQqrPAn8lt9H/SxX6HnnP0P6Q+Z++tDNgcrshzZjXR02VnXqM+FILKvAAERgsHY 0wBA== 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 Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id qh24-20020a056870bf1800b001dd0a442579si3846750oab.1.2023.11.21.10.03.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 10:03:56 -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 E839381552E0; Tue, 21 Nov 2023 10:03:38 -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 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:03:39 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783197688591036524 X-GMAIL-MSGID: 1783197688591036524 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 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);