Skip to content

Commit aa709f3

Browse files
committed
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 <[email protected]>
1 parent 21b2de3 commit aa709f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/mm/numa.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ static void __init parse_drconf_memory(struct device_node *memory)
639639
unsigned int n, rc, ranges, is_kexec_kdump = 0;
640640
unsigned long lmb_size, base, size, sz;
641641
int nid;
642-
struct assoc_arrays aa;
642+
struct assoc_arrays aa = { .arrays = NULL };
643643

644644
n = of_get_drconf_memory(memory, &dm);
645645
if (!n)

0 commit comments

Comments
 (0)