From patchwork Thu Feb 15 15:28:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Durrant X-Patchwork-Id: 201560 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp479209dyb; Thu, 15 Feb 2024 07:32:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUOG0OquUqm+s9zHBF2nftc3z4t6TzkQGw7gcNpAfCMBFcskgDnCxDeJus6DTgTKZSUmRwF7WhK/lV97D1Oqjd/u4byBg== X-Google-Smtp-Source: AGHT+IHB1qUYHB9tALNi211oO/bEdaECW8uEfSnn62feS67yFWiaNnPbz6AMGdvdiI+ybMUgEiSg X-Received: by 2002:a0c:f5c3:0:b0:68c:8208:cf71 with SMTP id q3-20020a0cf5c3000000b0068c8208cf71mr2579698qvm.31.1708011145603; Thu, 15 Feb 2024 07:32:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708011145; cv=pass; d=google.com; s=arc-20160816; b=wfY6I/LgX51MpLiFZXyjhQSrfnQrtc5oDgNcdVzHtz5on/mI8kfDMOlNwnmPPemH6I O4123TDSP2OTHfNvSS+CdI8nXT1e2RisUnBHPInm2jnXEXw4i0WiQXQkVnQbM23BrgyG /4+1YgzHGuc9miyhoQvrgZTMC1JmhsCRObmDDvY/ZjJ2ebkbKMbHRlBN+kgDOKtaYE3B 6y47My7DEABO86XG6gC3VkTrfTxqRQX+mYef5U6vZ4PMroEQJ6Kup2HmkFyySP7kXp8J nf8+dhHGWtiYZUJEWAppD+XwwjW7kuz5ZREX4pz9V+3xKifLPJBkMKQ43FYwoO0gBOaw tS/g== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67181-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iv1-20020ad45ce1000000b0068cd2d3420csi786175qvb.169.2024.02.15.07.32.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 07:32:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67181-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67181-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D173D1C23828 for ; Thu, 15 Feb 2024 15:31:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1913A134CCB; Thu, 15 Feb 2024 15:30:37 +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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790979494766763977 X-GMAIL-MSGID: 1790979494766763977 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);