Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

console: Drop added "static" for newport_con

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>

authored by

Kees Cook and committed by
Greg Kroah-Hartman
f54450ad c396a5bf

+1 -1
+1 -1
drivers/video/console/newport_con.c
··· 680 680 681 681 static void newport_save_screen(struct vc_data *vc) { } 682 682 683 - static const struct consw newport_con = { 683 + const struct consw newport_con = { 684 684 .owner = THIS_MODULE, 685 685 .con_startup = newport_startup, 686 686 .con_init = newport_init,