Skip to contentSkip to conversation

drivers: video: fb: make locally used fb_set_shadowfb() static

PATCH Applied Antony Pavlov 2 participants 2 messages Feb 4, 2016 – Feb 8, 2016 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: video: fb: make locally used fb_set_shadowfb() static

The patch fixes this compiler's warning:

drivers/video/fb.c:233:5: warning: no previous prototype for 'fb_set_shadowfb' [-Wmissing-prototypes]
int fb_set_shadowfb(struct param_d *p, void *priv)
^

---
 drivers/video/fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fb.c +1 -1
index d159d60..09bba00 100644
@@ -230,7 +230,7 @@ void *fb_get_screen_base(struct fb_info *info)
 		info->screen_base_shadow : info->screen_base;
 }
 
-int fb_set_shadowfb(struct param_d *p, void *priv)
+static int fb_set_shadowfb(struct param_d *p, void *priv)
 {
 	struct fb_info *info = priv;
 
Signature · 7 lines
2.7.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 11 lines · Antony Pavlov

The patch fixes this compiler's warning:

drivers/video/fb.c:233:5: warning: no previous prototype for 'fb_set_shadowfb' [-Wmissing-prototypes]
int fb_set_shadowfb(struct param_d *p, void *priv)
^

---
 drivers/video/fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox