Skip to content

Commit a391af9

Browse files
torvaldsgregkh
authored andcommitted
tty: rocket: fix incorrect forward declaration of 'rp_init()'
[ 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 <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent c51e9aa commit a391af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/rocket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ MODULE_PARM_DESC(pc104_3, "set interface types for ISA(PC104) board #3 (e.g. pc1
279279
module_param_array(pc104_4, ulong, NULL, 0);
280280
MODULE_PARM_DESC(pc104_4, "set interface types for ISA(PC104) board #4 (e.g. pc104_4=232,232,485,485,...");
281281

282-
static int rp_init(void);
282+
static int __init rp_init(void);
283283
static void rp_cleanup_module(void);
284284

285285
module_init(rp_init);

0 commit comments

Comments
 (0)