Skip to contentSkip to conversation

drivers/video/aty/aty128fb.c compiler warning seems like a BUG

DISCUSSION Jaswinder Singh Rajput 1 participant 1 message Jul 15, 2009

lore
Share & tools
lore
#0 lore raw

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