Skip to content

Commit

Permalink
parport: gsc: mark init function static
Browse files Browse the repository at this point in the history
This is only used locally, so mark it static to avoid a warning:

drivers/parport/parport_gsc.c:395:5: error: no previous prototype for 'parport_gsc_init' [-Werror=missing-prototypes]

Acked-by: Helge Deller <deller@gmx.de>
Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
Arnd Bergmann authored and Helge Deller committed Nov 10, 2023
1 parent 166b011 commit 8e8e46a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/parport/parport_gsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ static struct parisc_driver parport_driver __refdata = {
.remove = __exit_p(parport_remove_chip),
};

int parport_gsc_init(void)
static int parport_gsc_init(void)
{
return register_parisc_driver(&parport_driver);
}
Expand Down

0 comments on commit 8e8e46a

Please sign in to comment.