[coreboot] [patch]: avoid mcp55_early_setup_car.c compile failure when gcc 4.5.0 is used

Peter Stuge peter at stuge.se
Tue Oct 26 06:57:53 CEST 2010

Scott Duplichan wrote:
> Hello,
> When gcc 4.5.0 is used, compiling mcp55_early_setup_car.c fails:
> $ make
> which: svnversion: unknown command
> which: git: unknown command
>     GEN        build.h
>     CC         romstage.inc
> cc1.exe: warnings being treated as errors
> src/mainboard/gigabyte/m57sli/romstage.c: In function 'cache_as_ram_main':
> src/southbridge/nvidia/mcp55/mcp55_early_setup_car.c:366:11: error: 'busn[0u]' may be used uninitialized in this function
> src/southbridge/nvidia/mcp55/mcp55_early_setup_car.c:366:11: note: 'busn[0u]' was declared here
> src/southbridge/nvidia/mcp55/mcp55_early_setup_car.c:367:11: error: 'devn[0u]' may be used uninitialized in this function
> src/southbridge/nvidia/mcp55/mcp55_early_setup_car.c:367:11: note: 'devn[0u]' was declared here
> src/southbridge/nvidia/mcp55/mcp55_early_setup_car.c:368:11: error: 'io_base[0u]' may be used uninitialized in this function
> src/southbridge/nvidia/mcp55/mcp55_early_setup_car.c:368:11: note: 'io_base[0u]' was declared here
> make: *** [build/mainboard/gigabyte/m57sli/romstage.pre.inc] Error 1
> This is the only failure from abuild with gcc 4.5.0. Should we play
> along (at the expense of a few extra bytes of code generation)? If so:
> Signed-off-by: Scott Duplichan <scott at notabs.org>

Acked-by: Peter Stuge <peter at stuge.se>

More information about the coreboot mailing list