fbdev: i810: include i810_main.h in i810_dvt.c
Subsystems (2)
PATCH 1/1 fbdev: i810: include i810_main.h in i810_dvt.c
From: Arnd Bergmann <[email protected]>
Building with W=1 shows that a header needs to be included to make the prototypes visible:
drivers/video/fbdev/i810/i810_dvt.c:194:6: error: no previous prototype for 'round_off_xres' [-Werror=missing-prototypes] drivers/video/fbdev/i810/i810_dvt.c:233:6: error: no previous prototype for 'i810fb_encode_registers' [-Werror=missing-prototypes] drivers/video/fbdev/i810/i810_dvt.c:245:6: error: no previous prototype for 'i810fb_fill_var_timings' [-Werror=missing-prototypes] drivers/video/fbdev/i810/i810_dvt.c:279:5: error: no previous prototype for 'i810_get_watermark' [-Werror=missing-prototypes]
Adding the header leads to another warning from a mismatched prototype, so fix this as well:
drivers/video/fbdev/i810/i810_dvt.c:280:5: error: conflicting types for 'i810_get_watermark'; have 'u32(struct fb_var_screeninfo *,
--- drivers/video/fbdev/i810/i810_dvt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/video/fbdev/i810/i810_dvt.c +2 -1
@@ -14,6 +14,7 @@#include "i810_regs.h" #include "i810.h" +#include "i810_main.h" struct mode_registers std_modes[] = {/* 640x480 @ 60Hz */
@@ -276,7 +277,7 @@ void i810fb_fill_var_timings(struct fb_var_screeninfo *var) var->upper_margin = total - (yres + var->lower_margin + var->vsync_len); } -u32 i810_get_watermark (struct fb_var_screeninfo *var, +u32 i810_get_watermark (const struct fb_var_screeninfo *var,struct i810fb_par *par) {struct mode_registers *params = &par->regs;
Signature · 1 line
2.39.2
Quoted 10 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
Building with W=1 shows that a header needs to be included to make the prototypes visible:
drivers/video/fbdev/i810/i810_dvt.c:194:6: error: no previous prototype for 'round_off_xres' [-Werror=missing-prototypes]drivers/video/fbdev/i810/i810_dvt.c:233:6: error: no previous prototype for 'i810fb_encode_registers' [-Werror=missing-prototypes]drivers/video/fbdev/i810/i810_dvt.c:245:6: error: no previous prototype for 'i810fb_fill_var_timings' [-Werror=missing-prototypes]drivers/video/fbdev/i810/i810_dvt.c:279:5: error: no previous prototype for 'i810_get_watermark' [-Werror=missing-prototypes]
Quoted 4 lines
Adding the header leads to another warning from a mismatched prototype, so fix this as well:
drivers/video/fbdev/i810/i810_dvt.c:280:5: error: conflicting types for 'i810_get_watermark'; have 'u32(structfb_var_screeninfo*,
Changes here look fine,
but I think you should try CONFIG_FB_I810_GTF=y to get the same mismatched prototype error for i810_get_watermark() in i810_gtf.c, and add the const there while at it. R-b stands for that addition as well.
Quoted 27 lines
Signed-off-by Arnd Bergmann <[email protected]>--- drivers/video/fbdev/i810/i810_dvt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/video/fbdev/i810/i810_dvt.c +2
-1@@ -14,6 +14,7 @@#include "i810_regs.h" #include "i810.h" +#include "i810_main.h" struct mode_registers std_modes[] = {/* 640x480 @ 60Hz */ @@ -276,7 +277,7 @@ void i810fb_fill_var_timings(struct fb_var_screeninfo *var) var->upper_margin = total - (yres + var->lower_margin + var->vsync_len); } -u32 i810_get_watermark (struct fb_var_screeninfo *var, +u32 i810_get_watermark (const struct fb_var_screeninfo *var,struct i810fb_par *par) {struct mode_registers *params = &par->regs;
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Quoted 8 lines · Jani Nikula
Quoted 2 lines · Arnd Bergmann
drivers/video/fbdev/i810/i810_dvt.c:280:5: error: conflicting types for 'i810_get_watermark'; have 'u32(structfb_var_screeninfo*,Changes here look fine,
Reviewed-by Jani Nikula <[email protected]>
Thanks!
Quoted 3 lines
but I think you should try
CONFIG_FB_I810_GTF=yto get the same mismatched prototype error fori810_get_watermark()ini810_gtf.c, and add the const there while at it. R-b stands for that addition as well.
I'm fairly sure I looked at that and did not see a problem as i810_main.h is already included in that file, it was added in 2006 with commit a0aa7d063927 ("[PATCH] drivers/video/: possible cleanups").
Arnd
Quoted 12 lines · Arnd Bergmann
Quoted 8 lines · Jani Nikula
Quoted 2 lines · Arnd Bergmann
drivers/video/fbdev/i810/i810_dvt.c:280:5: error: conflicting types for 'i810_get_watermark'; have 'u32(structfb_var_screeninfo*,Changes here look fine,
Reviewed-by Jani Nikula <[email protected]>Thanks!
Quoted 8 lines
Quoted 3 lines
but I think you should try
CONFIG_FB_I810_GTF=yto get the same mismatched prototype error fori810_get_watermark()ini810_gtf.c, and add the const there while at it. R-b stands for that addition as well.I'm fairly sure I looked at that and did not see a problem as
i810_main.his already included in that file, it was added in 2006 with commita0aa7d063927("[PATCH]drivers/video/: possible cleanups").
True that, my bad. (Which kind of puts the R-b above in doubt, but hey, at least I looked at it. ;)
BR,
Jani.
Quoted 2 lines
Arnd
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Quoted 11 lines · Jani Nikula
Quoted 10 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
Building with W=1 shows that a header needs to be included to make the prototypes visible:
drivers/video/fbdev/i810/i810_dvt.c:194:6: error: no previous prototype for 'round_off_xres' [-Werror=missing-prototypes]drivers/video/fbdev/i810/i810_dvt.c:233:6: error: no previous prototype for 'i810fb_encode_registers' [-Werror=missing-prototypes]drivers/video/fbdev/i810/i810_dvt.c:245:6: error: no previous prototype for 'i810fb_fill_var_timings' [-Werror=missing-prototypes]drivers/video/fbdev/i810/i810_dvt.c:279:5: error: no previous prototype for 'i810_get_watermark' [-Werror=missing-prototypes]
Quoted 8 lines
Quoted 4 lines
Adding the header leads to another warning from a mismatched prototype, so fix this as well:
drivers/video/fbdev/i810/i810_dvt.c:280:5: error: conflicting types for 'i810_get_watermark'; have 'u32(structfb_var_screeninfo*,Changes here look fine,
Reviewed-by Jani Nikula <[email protected]>
applied to fbdev tree.
Thanks!
Helge