mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5ef097dd7b
commit
cea83886dd
1 changed files with 1 additions and 2 deletions
|
|
@ -70,8 +70,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.
|
||||
|
|
@ -146,6 +144,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
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue