All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tile: fix a -Wframe-larger-than warning
@ 2015-12-22 17:38 Chris Metcalf
  2015-12-22 17:38 ` [PATCH] tile: fix tilepro casts for readl, writel, etc Chris Metcalf
  2015-12-22 17:38 ` [PATCH] tile: provide CONFIG_PAGE_SIZE_64KB etc for tilepro Chris Metcalf
  0 siblings, 2 replies; 3+ messages in thread
From: Chris Metcalf @ 2015-12-22 17:38 UTC (permalink / raw)
  To: linux-kernel; +Cc: Chris Metcalf, Sudip Mukherjee

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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();
-- 
2.1.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-22 17:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-22 17:38 [PATCH] tile: fix a -Wframe-larger-than warning Chris Metcalf
2015-12-22 17:38 ` [PATCH] tile: fix tilepro casts for readl, writel, etc Chris Metcalf
2015-12-22 17:38 ` [PATCH] tile: provide CONFIG_PAGE_SIZE_64KB etc for tilepro Chris Metcalf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.