[PATCH] video: edid.c: fix "no previous prototype" warning
Antony Pavlov
antonynpavlov at gmail.com
Thu Mar 23 20:40:06 PDT 2017
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 <antonynpavlov at gmail.com>
---
drivers/video/edid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/edid.c b/drivers/video/edid.c
index 258526433..bee459411 100644
--- a/drivers/video/edid.c
+++ b/drivers/video/edid.c
@@ -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;
--
2.11.0
More information about the barebox
mailing list