The patch titled printk: avoid warning when CONFIG_PRINTK is disabled has been added to the -mm tree. Its filename is printk-avoid-warning-when-config_printk-is-disabled.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: printk: avoid warning when CONFIG_PRINTK is disabled From: "Gustavo F. Padovan" <padovan@xxxxxxxxxxxxxx> kernel/printk.c:72: warning: `saved_console_loglevel' defined but not used Signed-off-by: Gustavo F. Padovan <padovan@xxxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/printk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN kernel/printk.c~printk-avoid-warning-when-config_printk-is-disabled kernel/printk.c --- a/kernel/printk.c~printk-avoid-warning-when-config_printk-is-disabled +++ a/kernel/printk.c @@ -71,8 +71,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. @@ -147,6 +145,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 /* _ Patches currently in -mm which might be from padovan@xxxxxxxxxxxxxx are printk-avoid-warning-when-config_printk-is-disabled.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html