Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp530567rdb; Thu, 15 Feb 2024 07:31:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUOALw0BZQizWXQKF42eqdHBLJRMP11zcevL3mwievBV47u5CMPIZ42/niYpt7kluec/UrOzA2aRnuf4gjSEInBY0xoDIYqp6JvqmjXYg== X-Google-Smtp-Source: AGHT+IG3ZyxPvnoWDmrf1Di+WqV8C3l1NhXjh9Qg3Bh/xXELRR6+2fNGCxVATT7OWIpRtj8GO+DT X-Received: by 2002:aa7:888d:0:b0:6de:1b57:ca8c with SMTP id z13-20020aa7888d000000b006de1b57ca8cmr2811119pfe.23.1708011066515; Thu, 15 Feb 2024 07:31:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708011066; cv=pass; d=google.com; s=arc-20160816; b=AnmBLBuRH2x57Z+KMMpoQGb5rxF8m07RDgIavpMq6VQyAxvw9cNFiCHc3FKx6k/IkZ MBQOa97CtIzhGLZLvZOvhisUCLkJstc+i18b/geCxktYHjktoTLr0XFc5L0flP6M1+ih WgliIeDlc7MzZxrUb4bef2trM6588eHyLFlcIvHB/0AF6U2oShGfJYNNzyxep5kHMrhP LhUeywWByMDs7vzvhx/8zqaMhrhhvBSDDeOH9oCkrRL1bnui5qRGF5vmbe4Fkt2d7S6X WKLeqCWHIlf4iIIMYI8Tz7uy9VbVF6cC6ynY455kkIGNr0aL4k44zawc+YcRhDTqCQRe SYkQ== ARC-Message-Signature: i=2; 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=NrOggL3VZvuSFh5W9Wj2+kLgS4v0nogfnAWvBJoouXQ=; b=lmCSs7RieRoJYqpeFlnlk/TEPAUusBhJA9ovDUbHtge2LFdP7i43+m/8G2OsN4Ej3V k6t5cIRJHiYg4NVLNTI8J/XYX+5XYpNmG+DbXbLOF339wOQQ4YIBoNXwFwD93bNbVMgk ZspB/33yZE3MLlF236v9qFCGeE8xDqDxLiAU149u9TWPvYIClvxksEShKIAIYqOUGQ0A pj9V5H7WSlytZkTn0B6NApwYXL6Z7BFc5H73UIao/bT9pq5bB8S6noJJ+GAqh980+R2V k+tp5JnNzp5ThJRqvXHa4vfJioquTRYTDFWD1qlk/4JFh+BnX+BU5Z83JeuFUVgdnqwH ttXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b="l/GwnRw5"; arc=pass (i=1 spf=pass spfdomain=xen.org dkim=pass dkdomain=xen.org); spf=pass (google.com: domain of linux-kernel+bounces-67181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67181-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f50-20020a056a000b3200b006e10f315ac6si1271404pfu.226.2024.02.15.07.31.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 07:31:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b="l/GwnRw5"; arc=pass (i=1 spf=pass spfdomain=xen.org dkim=pass dkdomain=xen.org); spf=pass (google.com: domain of linux-kernel+bounces-67181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67181-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 35DF528197A for ; Thu, 15 Feb 2024 15:31:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4824D1339B4; Thu, 15 Feb 2024 15:30:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xen.org header.i=@xen.org header.b="l/GwnRw5" 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 E68C3133402; Thu, 15 Feb 2024 15:30:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=104.130.215.37 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708011034; cv=none; b=tCptxWeSjAZcNrxms3dmc2UCneEUnbY/xFv7Nh2v968LaQcSw5Me1yKVmeD1+2tY6ygvvFSkmJKeymJxULUVOOYRsDbsBBmRjC7qit9TGdudmki19mW5wJcsrv5sKhUaQjgNILJXxuVPnkpHpzfZJujso09kjMhq97D/wtiksU4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708011034; c=relaxed/simple; bh=CL+Rj3ZLuJ5la4ZGM017nsWmxKEWlrMPGavFVfobjzQ=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=LOp7UkFz3S/p0RzRcDXRJBI8bxEUsKq6o0hR8ScY41sENN4hXinn/KotRXoeywibQCl31U1AfU15lC5YI90Bf+6q1n+fa8qfsM0JJOXp4I1L4dgeBPWX72dxFjJ2XPeyJ+OpSRiXQzKJ/1Ggx6CVvC0VWF2bO1HujO0O2cBJOB0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org; spf=pass smtp.mailfrom=xen.org; dkim=pass (1024-bit key) header.d=xen.org header.i=@xen.org header.b=l/GwnRw5; arc=none smtp.client-ip=104.130.215.37 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=l/GwnRw5UzfMaqCsW4OboRGYEx 1en5wnZIj7wZTmkGsJw9OalyZeMt8Fr/GYFwD+TTN+UeMY4Qto/ZOti+Vg0JFBGXcEWN+r214tyXr RJ3DtJMBE5IrZv6vQQSspz3tPiXQGd71UJrWSvuxexeLWwt6K33d7E0nhHaCbehnXsEs=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1radgh-0001E5-1O; Thu, 15 Feb 2024 15:30:11 +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 1radgg-00089r-Od; Thu, 15 Feb 2024 15:30:10 +0000 From: Paul Durrant To: Paolo Bonzini , Jonathan Corbet , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , David Hildenbrand , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Sven Schnelle , 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-s390@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v13 02/21] KVM: pfncache: remove unnecessary exports Date: Thu, 15 Feb 2024 15:28:57 +0000 Message-Id: <20240215152916.1158-3-paul@xen.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240215152916.1158-1-paul@xen.org> References: <20240215152916.1158-1-paul@xen.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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); -- 2.39.2