History

tty: rocket: fix incorrect forward declaration of 'rp_init()'

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.

Linus Torvalds committed 7 years ago

Commit 423ea321 parent 9a91ad91 file · +1 −1Browse files

Unified · Split

drivers/tty/rocket.c+1−1
@@ -266,7 +266,7 @@ MODULE_PARM_DESC(pc104_3, "set interface types for ISA(PC104) board #3 (e.g. pc1 · 265 unmodified lines
266266 module_param_array(pc104_4, ulong, NULL, 0);
267267 MODULE_PARM_DESC(pc104_4, "set interface types for ISA(PC104) board #4 (e.g. pc104_4=232,232,485,485,...");
268268
269−static int rp_init(void);
269+static int __init rp_init(void);
270270 static void rp_cleanup_module(void);
271271
272272 module_init(rp_init);