aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/printk/printk.c
diff options
context:
space:
mode:
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>2022-02-16 11:19:57 +0800
committerPetr Mladek <pmladek@suse.com>2022-02-21 16:55:07 +0100
commitce06e863f36f16cdc3b84c7206cd13d5f597d623 (patch)
tree78fce747c80ca21cbb2f0d6f8ed1f605f7831bcc /kernel/printk/printk.c
parentprintk: Drop console_sem during panic (diff)
downloadlinux-dev-ce06e863f36f16cdc3b84c7206cd13d5f597d623.tar.xz
linux-dev-ce06e863f36f16cdc3b84c7206cd13d5f597d623.zip
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
Diffstat (limited to 'kernel/printk/printk.c')
-rw-r--r--kernel/printk/printk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 6a51907a33b9..f9430ac4caca 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 = {