Skip to content

Commit

Permalink
vt: fix regression warnings from KMS merge
Browse files Browse the repository at this point in the history
Fix the following new sparse warnings in vt.c introduced by the commit
b45cfba (vt,console,kdb: implement
atomic console enter/leave functions):

drivers/char/vt.c:197:5: warning: symbol 'saved_fg_console' was not declared. Should it be static?
drivers/char/vt.c:198:5: warning: symbol 'saved_last_console' was not declared. Should it be static?
drivers/char/vt.c:199:5: warning: symbol 'saved_want_console' was not declared. Should it be static?
drivers/char/vt.c:200:5: warning: symbol 'saved_vc_mode' was not declared. Should it be static?

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
CC: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
Jason Wessel committed Aug 16, 2010
1 parent 787ea1c commit fed891c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/char/vt.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ static DECLARE_WORK(console_work, console_callback);
int fg_console;
int last_console;
int want_console = -1;
int saved_fg_console;
int saved_last_console;
int saved_want_console;
int saved_vc_mode;
static int saved_fg_console;
static int saved_last_console;
static int saved_want_console;
static int saved_vc_mode;

/*
* For each existing display, we have a pointer to console currently visible
Expand Down

0 comments on commit fed891c

Please sign in to comment.