Skip to content

Commit ce06e86

Browse files
Jiapeng Chongpmladek
authored andcommitted
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 <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> Reviewed-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20220216031957.9761-1-jiapeng.chong@linux.alibaba.com
1 parent 8ebc476 commit ce06e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/printk/printk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ int __read_mostly suppress_printk;
9797
* During panic, heavy printk by other CPUs can delay the
9898
* panic and risk deadlock on console resources.
9999
*/
100-
int __read_mostly suppress_panic_printk;
100+
static int __read_mostly suppress_panic_printk;
101101

102102
#ifdef CONFIG_LOCKDEP
103103
static struct lockdep_map console_lock_dep_map = {

0 commit comments

Comments
 (0)