diff options
author | 2015-12-21 12:14:24 -0500 | |
---|---|---|
committer | 2016-01-18 14:49:19 -0500 | |
commit | f3a26163fa8f36344bf01707529052aea20368e8 (patch) | |
tree | 953ce3381bf2020f196bca2965a3062dd03275b6 /arch/tile | |
parent | tile: include the syscall number in the backtrace (diff) | |
download | linux-f3a26163fa8f36344bf01707529052aea20368e8.tar.gz linux-f3a26163fa8f36344bf01707529052aea20368e8.tar.bz2 linux-f3a26163fa8f36344bf01707529052aea20368e8.zip |
tile: fix a -Wframe-larger-than warning
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>
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/kernel/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c index 6b755d125783..bbb855de6569 100644 --- a/arch/tile/kernel/setup.c +++ b/arch/tile/kernel/setup.c @@ -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(); |