build warning in radeon/atombios_crtc.c: pll' may be used uninitialized

Stefan Richter stefanr at s5r6.in-berlin.de
Tue May 25 13:25:58 PDT 2010


Hi,

seen with gcc 4.3.4 in current git (although 2.6.34 should show that
too):

drivers/gpu/drm/radeon/atombios_crtc.c: In function 'atombios_crtc_set_pll':       
drivers/gpu/drm/radeon/atombios_crtc.c:684: warning: 'pll' may be used uninitialized in this function                                                                                           

It seems to require a 'make CONFIG_DEBUG_SECTION_MISMATCH=y' to trigger
this warning; don't know why.

Perhaps add a 'default:' case to the switch block?
-- 
Stefan Richter
-=====-==-=- -=-= ==--=
http://arcgraph.de/sr/



More information about the dri-devel mailing list