printk: Fix warning about unused suppress_message_printing
authorPetr Mladek <[email protected]>
Tue, 10 Jul 2018 08:44:53 +0000 (10:44 +0200)
committerPetr Mladek <[email protected]>
Wed, 11 Jul 2018 08:38:23 +0000 (10:38 +0200)
commitffaa619af1b062d5a37871df6363aa52356007a7
tree9a84efa17afc74aeece6d46d0cac653fe9a34ca5
parent8599dc7dec874b137384714bfe3ddbbf5d4a614e
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 <[email protected]>
Reported-by: Arnd Bergmann <[email protected]>
Suggested-by: Maninder Singh <[email protected]>
Acked-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
kernel/printk/printk.c