[coreboot] [commit] r5988 - trunk/src/southbridge/nvidia/mcp55

repository service svn at coreboot.org
Tue Oct 26 07:26:01 CEST 2010


Author: sduplichan
Date: Tue Oct 26 07:26:01 2010
New Revision: 5988
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5988

Log:
When gcc 4.5.0 is used, compiling mcp55_early_setup_car.c fails. This change eliminates the compiler warning that causes the build to fail.

Signed-off-by: Scott Duplichan <scott at notabs.org>
Acked-by: Peter Stuge <peter at stuge.se>

Modified:
   trunk/src/southbridge/nvidia/mcp55/mcp55_early_setup_car.c

Modified: trunk/src/southbridge/nvidia/mcp55/mcp55_early_setup_car.c
==============================================================================
--- trunk/src/southbridge/nvidia/mcp55/mcp55_early_setup_car.c	Mon Oct 25 17:32:07 2010	(r5987)
+++ trunk/src/southbridge/nvidia/mcp55/mcp55_early_setup_car.c	Tue Oct 26 07:26:01 2010	(r5988)
@@ -363,9 +363,9 @@
 static int mcp55_early_setup_x(void)
 {
 	/*find out how many mcp55 we have */
-	unsigned busn[HT_CHAIN_NUM_MAX];
-	unsigned devn[HT_CHAIN_NUM_MAX];
-	unsigned io_base[HT_CHAIN_NUM_MAX];
+	unsigned busn[HT_CHAIN_NUM_MAX] = {0};
+	unsigned devn[HT_CHAIN_NUM_MAX] = {0};
+	unsigned io_base[HT_CHAIN_NUM_MAX] = {0};
 	/*
 		FIXME: May have problem if there is different MCP55 HTX card with different PCI_E lane allocation
 		Need to use same trick about pci1234 to verify node/link connection




More information about the coreboot mailing list