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

Alex Deucher alexdeucher at gmail.com
Tue May 25 13:34:43 PDT 2010


On Tue, May 25, 2010 at 4:25 PM, Stefan Richter
<stefanr at s5r6.in-berlin.de> wrote:
> 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?

Adding a default to the last case should be fine.

Alex

> --
> Stefan Richter
> -=====-==-=- -=-= ==--=
> http://arcgraph.de/sr/
>
>


More information about the dri-devel mailing list