projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc608db
)
fbdev: sa1100fb: mark sa1100fb_init() static
author
Arnd Bergmann
<arnd@arndb.de>
Mon, 16 Oct 2023 20:04:40 +0000
(22:04 +0200)
committer
Helge 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/video/fbdev/sa1100fb.c
b/drivers/video/fbdev/sa1100fb.c
index 3d76ce11148826a169bd0f0251424262024a2d66..cf0f706762b49b93a7a6f839bc86e12acaf4f106 100644
(file)
--- a/
drivers/video/fbdev/sa1100fb.c
+++ b/
drivers/video/fbdev/sa1100fb.c
@@
-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;