Skip to content

Commit 63bbdb4

Browse files
YuKuai-huaweigregkh
authored andcommitted
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>
1 parent 86b2067 commit 63bbdb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/hvc/hvc_udbg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#include "hvc_console.h"
1919

20-
struct hvc_struct *hvc_udbg_dev;
20+
static struct hvc_struct *hvc_udbg_dev;
2121

2222
static int hvc_udbg_put(uint32_t vtermno, const char *buf, int count)
2323
{

0 commit comments

Comments
 (0)