Skip to content

Commit

Permalink
tile: fix a -Wframe-larger-than warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Chris Metcalf committed Jan 18, 2016
1 parent 5ac65ab commit f3a2616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/tile/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f3a2616

Please sign in to comment.