]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
printk: Remove console_silent()
authorDmitry Safonov <dima@arista.com>
Tue, 27 Jul 2021 13:06:34 +0000 (14:06 +0100)
committerPetr Mladek <pmladek@suse.com>
Thu, 29 Jul 2021 14:07:06 +0000 (16:07 +0200)
It' unused since removal of mn10300:
commit 739d875dd698 ("mn10300: Remove the architecture")
x86 stopped using it in v2.6.12 (see history git):
commit 7574828b3dbb ("[PATCH] x86_64: add nmi button support")

Let's clean it up from the header.

Signed-off-by: Dmitry Safonov <dima@arista.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20210727130635.675184-2-dima@arista.com
include/linux/printk.h

index 1790a5521fd9dbd96672e64d2e0aac15678de56b..f3f1a1eb19bdc4c98ccc83c16220624cdf13fef5 100644 (file)
@@ -69,11 +69,6 @@ extern int console_printk[];
 #define minimum_console_loglevel (console_printk[2])
 #define default_console_loglevel (console_printk[3])
 
-static inline void console_silent(void)
-{
-       console_loglevel = CONSOLE_LOGLEVEL_SILENT;
-}
-
 static inline void console_verbose(void)
 {
        if (console_loglevel)