]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2013 01:18:23 +0000 (18:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2013 01:18:23 +0000 (18:18 -0700)
added patches:
powerpc-numa-avoid-stupid-uninitialized-warning-from-gcc.patch

queue-3.4/powerpc-numa-avoid-stupid-uninitialized-warning-from-gcc.patch [new file with mode: 0644]
queue-3.4/series

diff --git a/queue-3.4/powerpc-numa-avoid-stupid-uninitialized-warning-from-gcc.patch b/queue-3.4/powerpc-numa-avoid-stupid-uninitialized-warning-from-gcc.patch
new file mode 100644 (file)
index 0000000..c33d733
--- /dev/null
@@ -0,0 +1,33 @@
+From aa709f3bc92c6daaf177cd7e3446da2ef64426c6 Mon Sep 17 00:00:00 2001
+From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
+Date: Thu, 5 Jul 2012 16:30:33 +0000
+Subject: powerpc/numa: Avoid stupid uninitialized warning from gcc
+
+From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
+
+commit aa709f3bc92c6daaf177cd7e3446da2ef64426c6 upstream.
+
+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 <benh@kernel.crashing.org>
+Cc: Guenter Roeck <linux@roeck-us.net>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/powerpc/mm/numa.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/powerpc/mm/numa.c
++++ b/arch/powerpc/mm/numa.c
+@@ -639,7 +639,7 @@ static void __init parse_drconf_memory(s
+       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)
index cb90496ce0d5f97adbafd71ab4204854a57c4dea..4c5a157d4a6a8995e6d4b089eab391f4a54d12d6 100644 (file)
@@ -13,3 +13,4 @@ cris-add-_sdata-to-vmlinux.lds.s.patch
 futex-take-hugepages-into-account-when-generating-futex_key.patch
 frv-use-correct-size-for-task_struct-allocation.patch
 frv-use-core-allocator-for-task_struct.patch
+powerpc-numa-avoid-stupid-uninitialized-warning-from-gcc.patch