fbdev: sa1100fb: mark sa1100fb_init() static
authorArnd Bergmann <arnd@arndb.de>
Mon, 16 Oct 2023 20:04:40 +0000 (22:04 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 16 Oct 2023 21:04:27 +0000 (23:04 +0200)
This is a global function that is only referenced as an initcall. This causes
a warning:

drivers/video/fbdev/sa1100fb.c:1218:12: error: no previous prototype for 'sa1100fb_init' [-Werror=missing-prototypes]

Make it static instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/sa1100fb.c

index 3d76ce1..cf0f706 100644 (file)
@@ -1214,7 +1214,7 @@ static struct platform_driver sa1100fb_driver = {
        },
 };
 
-int __init sa1100fb_init(void)
+static int __init sa1100fb_init(void)
 {
        if (fb_get_options("sa1100fb", NULL))
                return -ENODEV;