tile: fix a -Wframe-larger-than warning
authorChris Metcalf <cmetcalf@ezchip.com>
Mon, 21 Dec 2015 17:14:24 +0000 (12:14 -0500)
committerChris Metcalf <cmetcalf@ezchip.com>
Mon, 18 Jan 2016 19:49:19 +0000 (14:49 -0500)
The warning occurs in setup.c, where it is known that it can't be
a problem, but it's still a good idea to silence the warning.
The onstack array is converted from an s32 to a u8, which still
is plenty of range for the values being managed there.

Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
arch/tile/kernel/setup.c

index 6b755d125783f45b05de02e3fe5f7b5e32d1af45..bbb855de6569841200c991bf610b090c4e94c47b 100644 (file)
@@ -882,7 +882,7 @@ static int __init node_neighbors(int node, int cpu,
 
 static void __init setup_numa_mapping(void)
 {
-       int distance[MAX_NUMNODES][NR_CPUS];
+       u8 distance[MAX_NUMNODES][NR_CPUS];
        HV_Coord coord;
        int cpu, node, cpus, i, x, y;
        int num_nodes = num_online_nodes();