From: Jiapeng Chong Date: Wed, 16 Feb 2022 03:19:57 +0000 (+0800) Subject: printk: make suppress_panic_printk static X-Git-Tag: v6.6.17~7959^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce06e863f36f16cdc3b84c7206cd13d5f597d623;p=platform%2Fkernel%2Flinux-rpi.git printk: make suppress_panic_printk static This symbol is not used outside of printk.c, so marks it static. Fix the following sparse warning: kernel/printk/printk.c:100:19: warning: symbol 'suppress_panic_printk' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong Reviewed-by: Sergey Senozhatsky Reviewed-by: Miguel Ojeda Signed-off-by: Petr Mladek Link: https://lore.kernel.org/r/20220216031957.9761-1-jiapeng.chong@linux.alibaba.com --- diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 6a51907..f9430ac 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -97,7 +97,7 @@ int __read_mostly suppress_printk; * During panic, heavy printk by other CPUs can delay the * panic and risk deadlock on console resources. */ -int __read_mostly suppress_panic_printk; +static int __read_mostly suppress_panic_printk; #ifdef CONFIG_LOCKDEP static struct lockdep_map console_lock_dep_map = {