[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1265773819-865-1-git-send-email-padovan@profusion.mobi>
Date: Wed, 10 Feb 2010 01:50:19 -0200
From: "Gustavo F. Padovan" <padovan@...fusion.mobi>
To: linux-kernel@...r.kernel.org
Cc: akpm@...ux-foundation.org
Subject: [PATCH 1/3] printk: Avoid warning when CONFIG_PRINTK is disabled
kernel/printk.c:72: warning: ‘saved_console_loglevel’ defined but not used
Signed-off-by: Gustavo F. Padovan <padovan@...fusion.mobi>
---
kernel/printk.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/kernel/printk.c b/kernel/printk.c
index 1751c45..ed6487d 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -69,8 +69,6 @@ int console_printk[4] = {
DEFAULT_CONSOLE_LOGLEVEL, /* default_console_loglevel */
};
-static int saved_console_loglevel = -1;
-
/*
* Low level drivers may need that to know if they can schedule in
* their unblank() callback or not. So let's export it.
@@ -145,6 +143,7 @@ static char __log_buf[__LOG_BUF_LEN];
static char *log_buf = __log_buf;
static int log_buf_len = __LOG_BUF_LEN;
static unsigned logged_chars; /* Number of chars produced since last read+clear operation */
+static int saved_console_loglevel = -1;
#ifdef CONFIG_KEXEC
/*
--
1.6.4.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists