From: Arnd Bergmann <arnd@arndb.de>
To: Petr Mladek <pmladek@suse.com>,
Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>,
Steven Rostedt <rostedt@goodmis.org>,
Dave Young <dyoung@redhat.com>,
Namit Gupta <gupta.namit@samsung.com>,
Nikitas Angelinas <nikitas.angelinas@gmail.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH] printk: remove unused suppress_message_printing()
Date: Tue, 10 Jul 2018 17:22:10 +0200 [thread overview]
Message-ID: <20180710152216.2393454-1-arnd@arndb.de> (raw)
Moving the call to suppress_message_printing() into the '#ifdef CONFIG_PRINTK'
section means that the alternative definition is now unused when PRINTK is
disabled:
kernel/printk/printk.c:2033:13: error: 'suppress_message_printing' defined but not used [-Werror=unused-function]
This removes the stub function.
Fixes: 375899cddcbb ("printk: make sure to print log on console.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
kernel/printk/printk.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 4ca0f9bca82c..e015ac4ee367 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -2030,8 +2030,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 */
#ifdef CONFIG_EARLY_PRINTK
--
2.9.0
next reply other threads:[~2018-07-10 15:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-10 15:22 Arnd Bergmann [this message]
2018-07-11 1:54 ` Sergey Senozhatsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180710152216.2393454-1-arnd@arndb.de \
--to=arnd@arndb.de \
--cc=dyoung@redhat.com \
--cc=gupta.namit@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nikitas.angelinas@gmail.com \
--cc=pmladek@suse.com \
--cc=rostedt@goodmis.org \
--cc=sergey.senozhatsky@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®