video: edid.c: fix "no previous prototype" warning
PATCH 1/1 video: edid.c: fix "no previous prototype" warning
The patch fixes this compiler's warning:
drivers/video/edid.c:390:5: warning: no previous prototype
for 'fb_get_mode' [-Wmissing-prototypes]
int fb_get_mode(int flags, u32 val, struct fb_videomode *var)
^
Signed-off-by Antony Pavlov <[email protected]>
--- drivers/video/edid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/edid.c +1 -1
@@ -387,7 +387,7 @@ static void fb_timings_vfreq(struct __fb_timings *timings)* REQUIRES: * A valid info->monspecs, otherwise 'safe numbers' will be used. */ -int fb_get_mode (int flags,u32 val,struct fb_videomode *var) +static int fb_get_mode (int flags,u32 val,struct fb_videomode *var) {struct __fb_timings *timings;u32 interlace =1 , dscan =1 ;
Signature · 7 lines
2.11.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 11 lines · Antony Pavlov
The patch fixes this compiler's warning:
drivers/video/edid.c:390:5: warning: no previous prototype
for 'fb_get_mode' [-Wmissing-prototypes]
intfb_get_mode(int flags, u32 val, struct fb_videomode *var)^Signed-off-by Antony Pavlov <[email protected]>--- drivers/video/edid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
Sascha
Quoted 18 lines
drivers/video/edid.c +1
-1@@ -387,7 +387,7 @@ static void fb_timings_vfreq(struct __fb_timings *timings)* REQUIRES: * A valid info->monspecs, otherwise 'safe numbers' will be used. */ -int fb_get_mode (int flags,u32 val,struct fb_videomode *var) +static int fb_get_mode (int flags,u32 val,struct fb_videomode *var) {struct __fb_timings *timings;u32 interlace =1 , dscan =1 ;Signature · 1 line
2.11.0
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