Skip to contentSkip to conversation

fbdev: sa1100fb: mark sa1100fb_init() static

PATCH Applied Arnd Bergmann 2 participants 2 messages Oct 16, 2023 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbdev: sa1100fb: mark sa1100fb_init() static

From: Arnd Bergmann <[email protected]>

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.

---
 drivers/video/fbdev/sa1100fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/sa1100fb.c +1 -1
index 63e12a7c1100e..e14eb634cb944 100644
@@ -1215,7 +1215,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;
Signature · 1 line
2.39.2
maintainer Applied
#1 lore raw
Quoted 10 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

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.

applied.

Thanks!
Helge

Quoted 17 lines
---
  drivers/video/fbdev/sa1100fb.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/sa1100fb.c +1 -1
index 63e12a7c1100e..e14eb634cb944 100644
@@ -1215,7 +1215,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;