lkml.org 
[lkml]   [2019]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.4 69/73] tty: rocket: fix incorrect forward declaration of rp_init()
    Date
    [ 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 <torvalds@linux-foundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/tty/rocket.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/tty/rocket.c b/drivers/tty/rocket.c
    index 2b8f2e0a4224..ec6d20f25e8b 100644
    --- a/drivers/tty/rocket.c
    +++ b/drivers/tty/rocket.c
    @@ -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);
    --
    2.20.1


    \
     
     \ /
      Last update: 2019-07-08 17:18    [W:2.393 / U:0.292 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site