Skip to content

Commit

Permalink
tty: rocket: fix incorrect forward declaration of 'rp_init()'
Browse files Browse the repository at this point in the history
[ Upstream commit 423ea32 ]

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 <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Linus Torvalds authored and Greg Kroah-Hartman committed Jul 10, 2019
1 parent 986543f commit 1ed8ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/rocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,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);
Expand Down

0 comments on commit 1ed8ed6

Please sign in to comment.