2009-07-15 06:49:51

by Jaswinder Singh Rajput

[permalink] [raw]
Subject: drivers/video/aty/aty128fb.c compiler warning seems like a BUG

I am getting this warning in linus tree :

CC [M] drivers/video/aty/aty128fb.o
drivers/video/aty/aty128fb.c: In function ‘aty128_decode_var’:
drivers/video/aty/aty128fb.c:1520: warning: ‘pll.post_divider’ may be used uninitialized in this function

aty128_decode_var() is calling aty128_var_to_pll()

In aty128_var_to_pll() it is directly setting pll->post_divider
without initialization of pll :

pll->post_divider = post_dividers[i];

Thanks,
--
JSR