Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cea83886 authored by Gustavo Padovan's avatar Gustavo Padovan Committed by Linus Torvalds
Browse files

printk: avoid warning when CONFIG_PRINTK is disabled



kernel/printk.c:72: warning: `saved_console_loglevel' defined but not used

Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5ef097dd
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -70,8 +70,6 @@ int console_printk[4] = {
	DEFAULT_CONSOLE_LOGLEVEL,	/* default_console_loglevel */
	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
 * Low level drivers may need that to know if they can schedule in
 * their unblank() callback or not. So let's export it.
 * 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 char *log_buf = __log_buf;
static int log_buf_len = __LOG_BUF_LEN;
static int log_buf_len = __LOG_BUF_LEN;
static unsigned logged_chars; /* Number of chars produced since last read+clear operation */
static unsigned logged_chars; /* Number of chars produced since last read+clear operation */
static int saved_console_loglevel = -1;


#ifdef CONFIG_KEXEC
#ifdef CONFIG_KEXEC
/*
/*