From 2012b8127bfd27ec1ce5df7c12d04136588a57b0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 14 Feb 2015 17:41:10 -0600 Subject: northbridge/amd/amdmct: Fix FTBFS with node interleaving enabled This fixes errors of the form: error: 'Dct0MemSize' may be used uninitialized in this function Change-Id: Ifc853aea9050994f5641c57a081aa0667331c995 Signed-off-by: Timothy Pearson Signed-off-by: Alexandru Gagniuc Reviewed-on: http://review.coreboot.org/8455 Tested-by: build bot (Jenkins) --- src/northbridge/amd/amdmct/mct/mctndi_d.c | 3 ++- src/northbridge/amd/amdmct/mct_ddr3/mctndi_d.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/northbridge/amd/amdmct') diff --git a/src/northbridge/amd/amdmct/mct/mctndi_d.c b/src/northbridge/amd/amdmct/mct/mctndi_d.c index a408d4707d..cfc91f7a26 100644 --- a/src/northbridge/amd/amdmct/mct/mctndi_d.c +++ b/src/northbridge/amd/amdmct/mct/mctndi_d.c @@ -1,6 +1,7 @@ /* * This file is part of the coreboot project. * + * Copyright (C) 2015 Timothy Pearson , Raptor Engineering * Copyright (C) 2007 Advanced Micro Devices, Inc. * * This program is free software; you can redistribute it and/or modify @@ -27,7 +28,7 @@ void InterleaveNodes_D(struct MCTStatStruc *pMCTstat, u8 Node; u32 Base; u32 MemSize, MemSize0 = 0; - u32 Dct0MemSize, DctSelBase, DctSelBaseOffset = 0; + u32 Dct0MemSize = 0, DctSelBase, DctSelBaseOffset = 0; u8 Nodes; u8 NodesWmem; u8 DoIntlv; diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctndi_d.c b/src/northbridge/amd/amdmct/mct_ddr3/mctndi_d.c index 520a178e88..0cfbc657c1 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctndi_d.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctndi_d.c @@ -24,7 +24,7 @@ void InterleaveNodes_D(struct MCTStatStruc *pMCTstat, u8 Node; u32 Base; u32 MemSize, MemSize0 = 0; - u32 Dct0MemSize, DctSelBase, DctSelBaseOffset = 0; + u32 Dct0MemSize = 0, DctSelBase, DctSelBaseOffset = 0; u8 Nodes; u8 NodesWmem; u8 DoIntlv; -- cgit v1.2.3