Skip to content

Commit

Permalink
console: Drop added "static" for newport_con
Browse files Browse the repository at this point in the history
Commit 4fe505119778 ("console: Expand dummy functions for CFI") accidentally
added "static" to newport_con instance of struct consw, while trying to
normalize the declarations. This, however, needed to stay non-static as it
has an extern.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: 4fe505119778 ("console: Expand dummy functions for CFI")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Kees Cook authored and Greg Kroah-Hartman committed Feb 28, 2018
1 parent c396a5b commit f54450a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/console/newport_con.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ static int newport_set_origin(struct vc_data *vc)

static void newport_save_screen(struct vc_data *vc) { }

static const struct consw newport_con = {
const struct consw newport_con = {
.owner = THIS_MODULE,
.con_startup = newport_startup,
.con_init = newport_init,
Expand Down

0 comments on commit f54450a

Please sign in to comment.