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 <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Reviewed-by: Miguel Ojeda <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
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)