From: Linus Torvalds Date: Mon, 6 May 2019 18:28:23 +0000 (-0700) Subject: tty: rocket: fix incorrect forward declaration of 'rp_init()' X-Git-Tag: v4.19.58~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8a296abee3667329a68fa15851c4684c9c92874;p=platform%2Fkernel%2Flinux-rpi.git tty: rocket: fix incorrect forward declaration of 'rp_init()' [ Upstream commit 423ea3255424b954947d167681b71ded1b8fca53 ] Make the forward declaration actually match the real function definition, something that previous versions of gcc had just ignored. This is another patch to fix new warnings from gcc-9 before I start the merge window pulls. I don't want to miss legitimate new warnings just because my system update brought a new compiler with new warnings. Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- diff --git a/drivers/tty/rocket.c b/drivers/tty/rocket.c index b121d8f..27aeca3 100644 --- a/drivers/tty/rocket.c +++ b/drivers/tty/rocket.c @@ -266,7 +266,7 @@ MODULE_PARM_DESC(pc104_3, "set interface types for ISA(PC104) board #3 (e.g. pc1 module_param_array(pc104_4, ulong, NULL, 0); MODULE_PARM_DESC(pc104_4, "set interface types for ISA(PC104) board #4 (e.g. pc104_4=232,232,485,485,..."); -static int rp_init(void); +static int __init rp_init(void); static void rp_cleanup_module(void); module_init(rp_init);