Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933402AbbLVRiv (ORCPT ); Tue, 22 Dec 2015 12:38:51 -0500 Received: from mail-db3on0085.outbound.protection.outlook.com ([157.55.234.85]:63584 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754447AbbLVRio (ORCPT ); Tue, 22 Dec 2015 12:38:44 -0500 Authentication-Results: spf=fail (sender IP is 12.216.194.146) smtp.mailfrom=ezchip.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=ezchip.com; From: Chris Metcalf To: CC: Chris Metcalf , Sudip Mukherjee Subject: [PATCH] tile: fix a -Wframe-larger-than warning Date: Tue, 22 Dec 2015 12:38:34 -0500 Message-ID: <1450805916-26638-1-git-send-email-cmetcalf@ezchip.com> X-Mailer: git-send-email 2.1.2 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;DB3FFO11FD029;1:VM0p0fGUyr4qnwlfYxdKXZ4VuMPyVvSEsD3wA0MPNQqAqSG9Yi9HOfVJGM2BV0MJVngwxmhAgkNCRS3LEpZCSpCrBlBap2JnJ2w/f4mwYKtTQPpJQ+v4g32MLNPkHGU5Yfdh49Ic4FCcG3MNLd2MXdf4iP0XewJw6YT5vr5j6ILbuWO2Rl867rpgIbNW95CV5r7vKg1bzfF3IoyunZYXXURBwvaaHqz3G2/Y/RY+jxVXV/3vNVJFqiRsGZiC81SfkoR/tq2r72RpFzEZDgZdsWz3nU/BDAffOlSaUwe8s+IGq+ubj5nJFbPVDVpOHctQh9Gt2d4pIWLgnvDbfm28Nj5SgWPmUWHFsQfi30mmrCF0E5D/Vh95xJQeky8Rft5hlhsjOq38n9g88YvN8VfF7Q== X-Forefront-Antispam-Report: CIP:12.216.194.146;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(104016004)(87936001)(6806005)(19580395003)(230783001)(19580405001)(11100500001)(92566002)(85426001)(33646002)(50466002)(48376002)(47776003)(50986999)(5003940100001)(42186005)(586003)(1220700001)(1096002)(189998001)(229853001)(50226001)(106466001)(105606002)(2351001)(5008740100001)(5001970100001)(36756003)(86362001)(110136002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM3PR02MB114;H:lab-41.internal.tilera.com;FPR:;SPF:Fail;PTR:wb-fw1.tilera.com;MX:1;A:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;AM3PR02MB114;2:2LFCCsgNcLyLeJPuw4PV8nHPAaekBGX7UkEc4KvaAS7ymrcVEuWAcTRkjQlLEy2cdozx5YTPffXI8BuZIE/0HCvYmYOgOhI6MKcBElqYWBH0wB+AwAmQ2kDJ75+wUDJYvNimAi86N4z+uhnZHyygjA==;3:BAnf8k3chjFAGwJophng4UWazkNILpEnyxgRbFJFKlXZza3w7zSCDfOxNvMQG1mSMJFu5iUZHRUkwi9XcVmCm+PeXyZLmQ5pWjSOCFvqgcpZlM47qAvwAWj1r/S56HudejLP94eGpSLpe+zud1es8suR+3QsExlXpWh3EVEOi81elziVGsccD0AOxFH5icv1DOKqVNxowCKesEcIpSuUX22GDgPX8q2By154ZNUbISo=;25:G39teSzCJMCJilZDK6S2QuXcVTT4wrwmAzWBVUXLRhEQA85T1QwN1jNxBciwvwSFNg/8kqK5jY027uCkLObh8rDcdcyYlsUeOodqELCs6qYViK66wJM5Xy1OqkwHgewrTRiDysNxuJ6e2eMJKBEGPW4BiZp91m3hNQ90HH2kr1wLUre141WvSfLsjNWooyLluYg5r/+Go29BWLvgIUPIBIGPP4ZDXg/CVleAVcXsm9tkQInWfAc12z1utfB3ynwl8yDBm9Nfna6R3uP4ZpIEKA==;20:Kxfpyw1iyGvHatiiVCAJeh6asP9C+07Vh4G0yqDLpkjObHK42rvp2Mo+3oqf2K7bNcnyFyKKJy0sMZKQItuYdl/ABTcDX/Zrg15eZBFTUKF2l5u55J+3w8phCoifllUny78EBQayvKiX+EniIm82Rdq04CdO+CEn6F7VbPRTItY= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM3PR02MB114; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(121898900299872); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046);SRVR:AM3PR02MB114;BCL:0;PCL:0;RULEID:;SRVR:AM3PR02MB114; X-Microsoft-Exchange-Diagnostics: 1;AM3PR02MB114;4:Z03dXVMtSMjbHaRpyhbi55HV5dSo3r1Ej/HH4IMiucR30/Lg44QwZKTeg6m5N7NFVylGPHUHIMBN1AtN1bPXI2EMGdGZCyRHfWbSxmGtyNVINNAR1bMMnH1B2folZ+aCdd4hUaDfbJIoc6ZbZXx5ogKhCgfUve5GTqbpU9dGkjuL6LakS3vn9Ia9U43qh2Mk1FsuIdp+n3Ug+6RY8UvfT8jEoeyG5wC2brnTg3q++dMhNkUrT63tjDkCbXhH+nJjBeJoe/0B3wdoa8MDmSvgPUqyzuSSy3m8loBiRoOAWnUg9wU0HJtgi5gdz7w2Tcu1ZHl4S2i1x+rClYh4svGezcMSu3nKLZNMxufcCoHO3kwGz8PraEBK4NjaUUGCtVw0Xgtjuyxe13O7mz3QXqeh5RqB81o21P/DJhhvfzdEMYmIGjx/g5HRojPXrw3mOiz2 X-Forefront-PRVS: 0798146F16 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AM3PR02MB114;23:/TrC/CwwyVsblnm1LSyHyz/CmPV1Qwz2R0CYwLFRKF?= =?us-ascii?Q?oN/BA+/wHF7CbcQNYjr90j9OVBYgjYa7Psnw75ILaDXmiIL2oyeRHXqR5Woq?= =?us-ascii?Q?OFXypbZINw9B2cVhcx7xU/e+9MNZcU85SY+AOC8P28bZjy18lQUhtJJ6gMFr?= =?us-ascii?Q?/vDNSD2BeyMmGVaS+Stx9C+/avy3Cj6YeoyDcGD5BBDgcpLfppE4nqE5Cf5k?= =?us-ascii?Q?gAoHxuMloKymWZD+m1LebepJ0CLxdzYcBMP9wRXogpctIr2b12pUakB8ntva?= =?us-ascii?Q?UFXzIDUwQo3ZdPyOvzPyy1+b0Fge9DxBgolJUhtHp2Dq/5xq2yLe5PR3N0fe?= =?us-ascii?Q?b81mSB9qU34V277aVLd4zbu+4kkFTwyhD7zWny6195HEgCtJ5Msqk+nDXRNq?= =?us-ascii?Q?IEvNb7JOMGOG3O4vuKS+uWya3vnTWy8sU7JR87oq2shVBPByiBKerzYpUGLz?= =?us-ascii?Q?yP04DKbbTGz8z+jFpj49IE3eiHTDROWjWFuekiMYC6XUmgCCafQKhYS+Rl+T?= =?us-ascii?Q?OlnuvTKZQKiOgJzH/yhJBNwK2MBnei+Ys4rqX3aXniYc8+jq055EZ83AaPnF?= =?us-ascii?Q?UJt4ufUMsdolBZSGQ9uEfpywfYrUJxe6RVGLsj4LdcJlGO7u9dKBZZVvDNrT?= =?us-ascii?Q?lcTBXaT0KfYewUy3+18WAqh5TVxhEhWLYh5pCOKVi6elLDm+KJjJjHe+tmsu?= =?us-ascii?Q?UrokLP+NaGCgKRYmlFmDTmz0AQqmTPWEAA/45IPPLwEsL4ZbJBLwEQ8zewaH?= =?us-ascii?Q?QJ50hkWEUe5z1UM9ZzDtx5UWf/KQUIR+xY7xjxagV5BrryWE+zE97uTu3Aw6?= =?us-ascii?Q?lp0o6s4OZdm7avkxEWr99FBSEykjMM4MHjvDNsShJ2NOKXVTHq97h/YBXapc?= =?us-ascii?Q?RRWeBDAvjY8SJ6STI5V+vKyD8gRmX04L96E4h7EKp1XqNf3qWGOiosRpahly?= =?us-ascii?Q?LKbsajkxk6fqm4R9jUMrnDUSawfYFvACIRmA79OCiY6FpUXczR8kAQDg+Twf?= =?us-ascii?Q?w=3D?= X-Microsoft-Exchange-Diagnostics: 1;AM3PR02MB114;5:RJ8PyBRo5SHxFEo45lPDTP7/WBngnDLnyHDLAeEeabMc1yIFxkefKaVUCBiuvHNcVYbFJZomWxOYg0JcT3Cw6R9/PbygWEpycAiYI5PUPiNjE+PA7stF2Q/RBbAU1uZSI/kEV7zvssTQ8WpPqYfiMw==;24:QF79NfGUY77uhj7EUq/OuTHnirdqQtNtkl2l4iWYuXy+7R/5KqrXcI8eN7UcCLQ2EcGeoaNBylsTZg3FXAx+iybwDXJ3M0PI9zSAjJla3s8= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2015 17:38:41.0257 (UTC) X-MS-Exchange-CrossTenant-Id: 0fc16e0a-3cd3-4092-8b2f-0a42cff122c3 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0fc16e0a-3cd3-4092-8b2f-0a42cff122c3;Ip=[12.216.194.146];Helo=[lab-41.internal.tilera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR02MB114 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1094 Lines: 31 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 --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/