parport: gsc: mark init function static
authorArnd Bergmann <arnd@arndb.de>
Wed, 8 Nov 2023 12:58:26 +0000 (13:58 +0100)
committerHelge Deller <deller@gmx.de>
Fri, 10 Nov 2023 07:41:23 +0000 (08:41 +0100)
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>
drivers/parport/parport_gsc.c

index 5e44752..c7e1838 100644 (file)
@@ -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);
 }