Need add related 'default' processing contents for 'switch', or may report 'wm' uninitialized warning. The related warning: drivers/video/i740fb.c:662:26: warning: ‘wm’ may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Chen Gang <gang.chen@xxxxxxxxxxx> --- drivers/video/i740fb.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/video/i740fb.c b/drivers/video/i740fb.c index 6c48388..e82e767 100644 --- a/drivers/video/i740fb.c +++ b/drivers/video/i740fb.c @@ -336,6 +336,9 @@ static u32 i740_calc_fifo(struct i740fb_par *par, u32 freq, int bpp) wm = 0x16110000; } break; + default: + wm = 0; + BUG(); } return wm; -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html