From: Benjamin Herrenschmidt Date: Thu, 5 Jul 2012 16:30:33 +0000 (+0000) Subject: powerpc/numa: Avoid stupid uninitialized warning from gcc X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=aa709f3bc92c6daaf177cd7e3446da2ef64426c6;p=openwrt%2Fstaging%2Fblogic.git powerpc/numa: Avoid stupid uninitialized warning from gcc Newer gcc are being a bit blind here (it's pretty obvious we don't reach the code path using the array if we haven't initialized the pointer) but none of that is performance critical so let's just silence it. Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 6e8f677f5646..1e95556dc692 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c @@ -639,7 +639,7 @@ static void __init parse_drconf_memory(struct device_node *memory) unsigned int n, rc, ranges, is_kexec_kdump = 0; unsigned long lmb_size, base, size, sz; int nid; - struct assoc_arrays aa; + struct assoc_arrays aa = { .arrays = NULL }; n = of_get_drconf_memory(memory, &dm); if (!n)