summaryrefslogtreecommitdiff
path: root/drivers/hv/hv_debugfs.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2020-04-03 11:28:45 +0300
committerWei Liu <wei.liu@kernel.org>2020-04-04 19:47:43 +0300
commit3e0d3776501a215358e3d91045b74f35a7eeaad9 (patch)
tree3915b54d95e8df165c491fe1bcd052f45fadb685 /drivers/hv/hv_debugfs.c
parent032d4a4802209fe25ce44deb2c002dccf663925f (diff)
downloadlinux-3e0d3776501a215358e3d91045b74f35a7eeaad9.tar.xz
hv_debugfs: Make hv_debug_root static
Fix sparse warning: drivers/hv/hv_debugfs.c:14:15: warning: symbol 'hv_debug_root' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/20200403082845.22740-1-yuehaibing@huawei.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'drivers/hv/hv_debugfs.c')
-rw-r--r--drivers/hv/hv_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/hv_debugfs.c b/drivers/hv/hv_debugfs.c
index 8a2878573582..ccf752b6659a 100644
--- a/drivers/hv/hv_debugfs.c
+++ b/drivers/hv/hv_debugfs.c
@@ -11,7 +11,7 @@
#include "hyperv_vmbus.h"
-struct dentry *hv_debug_root;
+static struct dentry *hv_debug_root;
static int hv_debugfs_delay_get(void *data, u64 *val)
{