Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp74866lqo; Wed, 15 May 2024 08:08:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUsEfoMSDlxVe/7lylayuzU3dDUUnVVVLj2Ddq869UfM6eGMMyR7MqS70DLiexUEku2Q59Lk0n4Kkin8d6I1Ysway994Utf4rpfTSWBow== X-Google-Smtp-Source: AGHT+IFPUDBA5DifYtyXX9mHGXYDO/283WuXO1+K7lG8GW6OaJYb+GdY/EUzCYOrXU5EG3Ndo/xp X-Received: by 2002:a05:6a00:4b4c:b0:6f3:c10a:7bdd with SMTP id d2e1a72fcca58-6f4e02d36a4mr24069479b3a.18.1715785698973; Wed, 15 May 2024 08:08:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715785698; cv=pass; d=google.com; s=arc-20160816; b=n26y7wJC/shmrBw68a+Z28Flu2sPUvw5U4VLd/glM/sm8F8xqLVS7L+4sAyOY1ANY6 5x7eR1jHs8ouDKPc/UVx04wr39ywq4ZscYJ5NyU9e5Mw9MafCLbTNjDEit7NxFC2KWol kw2dknWbV1C83Jy2O8D4xbv9371L7v0S92yPcpvGEAwgPIglHuk/yI19vFzbdZsZZlVQ RKuaQg+wHe2Ki6+D5wa6inueapdfu5RZSGH6l6GwXWarH/lRg1AFPS4ETKVjbkSTO1Si hcuRrFtlsjS3U8fsfWgKFVL9p2pdjOO9N4b/aVcS6qaKgtPmUILSxT8O9R1wZ4Qk3So+ Q0Vg== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=KwqEjkgYsUCethKGEfVrX1aN9d6pqUJphBydmaUlJoQ=; fh=OEzoJe4UnUJeY7kSuIjPTuIhYUzTU0efBKXa2Vtbuto=; b=CdJln7mA1TAizmaZBdhI3QBgxwXMnH93LoStGGjXR9EEOHLTe3sPguTeg2odVXBFJG 3llGXY5+7nOT/P/mNfoOedcfA3VJ//bU1xr1ndmkOXTITOUQKuKUxYtsr1P0n5xQgQdR YRWddetKy1oGryLyI5qCZvUdIUL8ucqwyVHMcs+JqqLiX/MKEL6gXSR5PEBlSdO4G5u5 EBiOdYCkPMP1P/T700uXY38OUJodYnvOSSdw8QItXe+9kEmTHhrzQNBa8WfL6gzjwivp w5epTsiV67I1hBk1FIMK4eXiinXh0hRMDIh6oTUWSeKV2LDdTWPuPeYvDosi/FzsnZMC MbtQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZEkraM2V; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-180047-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180047-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6579891f691si361991a12.275.2024.05.15.08.08.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 08:08:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180047-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZEkraM2V; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-180047-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180047-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 23973283D66 for ; Wed, 15 May 2024 15:08:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EA98155743; Wed, 15 May 2024 15:08:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZEkraM2V" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8D5A215573D; Wed, 15 May 2024 15:08:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715785689; cv=none; b=qCFLfsdsuCDFwazeDoKUVrM70NhKEXpRyWYLgMRpgwRjy14h0pDvAG0PSMkWW1otXSvwz1V5tW9LcwpLWL2fipjhlwvMJEIo0NFcrMM1hRZjx7TK+iP8Csj/RYzaaqW4D1oHeaDuatXhj/twL4wpQGvAMkatIgs0g7Td1McmJzQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715785689; c=relaxed/simple; bh=J6MPXBTlWKwxGO96Tz96YxtwSODWhWwkjd44N0B7Qz4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CfnQ00ZCKWcn1OUdkM4p/UP46vn/A7rEbzyR+THxaykUqY7Jn28ch7VcTc4BUr9GGsWc2RzjxnhmlreD8XC3vsCzZN/ONmY9M+7wtwegG5OLDLHwwwQ4FX3wTUUaMhrUGnKShOjnkyv3Er8qFo33EGTDS3ZJb1P/6EgqJzbTwYo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZEkraM2V; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E368C116B1; Wed, 15 May 2024 15:08:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715785689; bh=J6MPXBTlWKwxGO96Tz96YxtwSODWhWwkjd44N0B7Qz4=; h=From:To:Cc:Subject:Date:From; b=ZEkraM2VY2lnWkM5470A9PJIsWMVF2+t5KtDIOkU/Z4ZPqeEHP8qG6kSknFc56Ver q2Kw7CV5UVmUdgq2L0iSTPMWJDiH6ZK/gBuzMWbZep4YpmhyLCCP3i9NoMbxMMwLzc KsZs4DWUCCOGWREjW2OSeKjcaluJffWvpZOwrOuhYw9qvuPc3ygrI+24B1qNoXKiJh nAbeUAzr8brSC5BTs87Q5JKuyZsP5vM0xjJkZKXUe7hwdXdybf8l4k7kncFcypucQ/ BQeMesu90MVB1AqY2qC3RueXeMwfN2ty0+TFiChF0JzzN7KPHDMF3XwJzLlUDdrtnn wLyMVabTfQhwA== From: Borislav Petkov To: KVM Cc: LKML , "Borislav Petkov (AMD)" Subject: [PATCH] KVM: Unexport kvm_debugfs_dir Date: Wed, 15 May 2024 17:08:04 +0200 Message-ID: <20240515150804.9354-1-bp@kernel.org> X-Mailer: git-send-email 2.43.0 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: "Borislav Petkov (AMD)" After faf01aef0570 ("KVM: PPC: Merge powerpc's debugfs entry content into generic entry") kvm_debugfs_dir is not used anywhere else outside of kvm_main.c Unexport it and make it static. Signed-off-by: Borislav Petkov (AMD) --- include/linux/kvm_host.h | 2 -- virt/kvm/kvm_main.c | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 48f31dcd318a..c8bc33aab26a 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -1959,8 +1959,6 @@ struct _kvm_stats_desc { HALT_POLL_HIST_COUNT), \ STATS_DESC_IBOOLEAN(VCPU_GENERIC, blocking) -extern struct dentry *kvm_debugfs_dir; - ssize_t kvm_stats_read(char *id, const struct kvm_stats_header *header, const struct _kvm_stats_desc *desc, void *stats, size_t size_stats, diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index ff0a20565f90..382e2ab14137 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -110,8 +110,7 @@ static struct kmem_cache *kvm_vcpu_cache; static __read_mostly struct preempt_ops kvm_preempt_ops; static DEFINE_PER_CPU(struct kvm_vcpu *, kvm_running_vcpu); -struct dentry *kvm_debugfs_dir; -EXPORT_SYMBOL_GPL(kvm_debugfs_dir); +static struct dentry *kvm_debugfs_dir; static const struct file_operations stat_fops_per_vm; -- 2.43.0