From: Yu Kuai Date: Wed, 7 Apr 2021 12:58:26 +0000 (+0800) Subject: tty: hvc: make symbol 'hvc_udbg_dev' static X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=63bbdb4ea02b17f929fa4f5c536357183eba9639;p=linux.git 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 Signed-off-by: Yu Kuai Link: https://lore.kernel.org/r/20210407125826.4139130-1-yukuai3@huawei.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/hvc/hvc_udbg.c b/drivers/tty/hvc/hvc_udbg.c index a4c9913f76a06..ff0dcc56413c4 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) {