diff options
author | Petr Mladek <pmladek@suse.com> | 2018-07-10 11:44:53 +0300 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2018-07-11 11:38:23 +0300 |
commit | ffaa619af1b062d5a37871df6363aa52356007a7 (patch) | |
tree | 9a84efa17afc74aeece6d46d0cac653fe9a34ca5 /kernel/printk | |
parent | 8599dc7dec874b137384714bfe3ddbbf5d4a614e (diff) | |
download | linux-ffaa619af1b062d5a37871df6363aa52356007a7.tar.xz |
printk: Fix warning about unused suppress_message_printing
suppress_message_printing() is not longer called in console_unlock().
Therefore it is not longer needed with disabled CONFIG_PRINTK.
This fixes the warning:
kernel/printk/printk.c:2033:13: warning: ‘suppress_message_printing’ defined but not used [-Wunused-function]
static bool suppress_message_printing(int level) { return false; }
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Suggested-by: Maninder Singh <maninder1.s@samsung.com>
Acked-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'kernel/printk')
-rw-r--r-- | kernel/printk/printk.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index fcc1992c040a..e2cb0fc18e2d 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -2021,7 +2021,6 @@ static void call_console_drivers(const char *ext_text, size_t ext_len, const char *text, size_t len) {} static size_t msg_print_text(const struct printk_log *msg, bool syslog, char *buf, size_t size) { return 0; } -static bool suppress_message_printing(int level) { return false; } #endif /* CONFIG_PRINTK */ |