Skip to content

Commit

Permalink
printk: avoid warning when CONFIG_PRINTK is disabled
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Gustavo F. Padovan authored and torvalds committed Mar 6, 2010
1 parent 5ef097d commit cea8388
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
/*
Expand Down

0 comments on commit cea8388

Please sign in to comment.