aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/hvc
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2021-04-07 20:58:26 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-10 10:41:40 +0200
commit63bbdb4ea02b17f929fa4f5c536357183eba9639 (patch)
treeab25168897c9ee3149824fd89a4af9a0912035fd /drivers/tty/hvc
parenttty: clarify that not all ttys have a class device (diff)
downloadlinux-dev-63bbdb4ea02b17f929fa4f5c536357183eba9639.tar.xz
linux-dev-63bbdb4ea02b17f929fa4f5c536357183eba9639.zip
tty: hvc: make symbol 'hvc_udbg_dev' static
The sparse tool complains as follows: drivers/tty/hvc/hvc_udbg.c:20:19: warning: symbol 'hvc_udbg_dev' was not declared. Should it be static? This symbol is not used outside of hvc_udbg.c, so this commit marks it static. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yu Kuai <yukuai3@huawei.com> Link: https://lore.kernel.org/r/20210407125826.4139130-1-yukuai3@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/hvc')
-rw-r--r--drivers/tty/hvc/hvc_udbg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/hvc/hvc_udbg.c b/drivers/tty/hvc/hvc_udbg.c
index a4c9913f76a0..ff0dcc56413c 100644
--- a/drivers/tty/hvc/hvc_udbg.c
+++ b/drivers/tty/hvc/hvc_udbg.c
@@ -17,7 +17,7 @@
#include "hvc_console.h"
-struct hvc_struct *hvc_udbg_dev;
+static struct hvc_struct *hvc_udbg_dev;
static int hvc_udbg_put(uint32_t vtermno, const char *buf, int count)
{