From patchwork Wed Feb 17 15:20:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 8340681 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CBF27C0553 for ; Wed, 17 Feb 2016 15:54:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 06B0420398 for ; Wed, 17 Feb 2016 15:54:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9B0F8203B1 for ; Wed, 17 Feb 2016 15:54:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423341AbcBQPyc (ORCPT ); Wed, 17 Feb 2016 10:54:32 -0500 Received: from mail-by2on0068.outbound.protection.outlook.com ([207.46.100.68]:54912 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1423237AbcBQPya (ORCPT ); Wed, 17 Feb 2016 10:54:30 -0500 X-Greylist: delayed 2031 seconds by postgrey-1.27 at vger.kernel.org; Wed, 17 Feb 2016 10:54:30 EST Received: from CH1PR03CA001.namprd03.prod.outlook.com (10.255.156.146) by BL2PR03MB306.namprd03.prod.outlook.com (10.141.68.14) with Microsoft SMTP Server (TLS) id 15.1.409.15; Wed, 17 Feb 2016 15:20:37 +0000 Received: from BL2FFO11FD007.protection.gbl (10.255.156.132) by CH1PR03CA001.outlook.office365.com (10.255.156.146) with Microsoft SMTP Server (TLS) id 15.1.409.15 via Frontend Transport; Wed, 17 Feb 2016 15:20:37 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD007.mail.protection.outlook.com (10.173.161.3) with Microsoft SMTP Server (TLS) id 15.1.415.6 via Frontend Transport; Wed, 17 Feb 2016 15:20:36 +0000 Received: from fabio-Latitude-E6410.am.freescale.net (fabio-Latitude-E6410.am.freescale.net [10.29.244.206]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u1HFKXJe030013; Wed, 17 Feb 2016 08:20:33 -0700 From: Fabio Estevam To: CC: , Fabio Estevam Subject: [PATCH 1/2] spi: core: Use %zu for printing 'size_t' type Date: Wed, 17 Feb 2016 13:20:23 -0200 Message-ID: <1455722424-15490-1-git-send-email-fabio.estevam@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131001960367557157; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD007; 1:1YwJOJcFLmnFPIMAIZKh0+juxVV9+C7blAfL3m8PZqsOKppomIAKYUb/Jm3EVfc+K+SkaRbMULSsZmmAx4lvMq0N5BqlgV/tulIuQ8wpEw243PMZqznzDzWvCBWv0IumHtGZ5cv2DTamIvqMKBlA4UAu0izz5jfmj1ZsZ1ppzzZNjIMwPSX2x5FMjLWHcbql7PSx/g+oOIT7zpXDOZ0yFgVo2QTZyzWzJapTawhZK761nA0DJKysoLdwYFtH3kuYG4uerun3Hv+dkrxkqVx8ZmaqHQVzbuPV5k98ir784J3SzUNNOoTOwQJKBnh/jnp4iKo0xGD4d0isZyE3IgFLq93UA1rgoIJCYT5qivpqSUmhVRQLbOunzaGfNAERsj4gHkvbMPtr8v5S3oRKuLZaMTj0EA+bJCm5T8eQysAoYjPxN7Rq6a4I0158wo2s5bv0TBRrfuRtG6ObCiLxpHEODyrelZSLGwkuGndEWXO0QiHVuReXjjlVF3tL+Np21H2+PtPyVZI5U26kBCxSLBIpsT4Z3Iu5IsI6QkVhjm0bRfv3Ai0Ao3Pii8Ffe5Aw2uhf00dfCYOAmGzuDuUvoRhaSg== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(48376002)(105606002)(86362001)(50226001)(104016004)(2351001)(47776003)(106466001)(50986999)(11100500001)(6806005)(1220700001)(87936001)(586003)(1096002)(5008740100001)(19580405001)(110136002)(5001960100002)(50466002)(92566002)(85426001)(33646002)(77096005)(19580395003)(2906002)(189998001)(36756003)(4326007)(229853001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB306; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 93825bed-b65d-4b4b-1dbc-08d337ade2f8 X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB306; 2:bTjCn55xU+WDBG9ZFb0Cb8ePsEvy2XfTdM++OzimIA5EGtPda22kk0GNnV10SlS9IO0pI9N4hTfgNklglwFyfKcMiySHqGSuImpexNbwro4ZDPoqHtikcK+K/eQdN0Gjvi2LyIeh/bjy056k5t0RBdrddCcTAYH1wA8HAQXMzBINvq1abrACWxkXoTv7g6CE; 3:+6ClcJ1uCVG3WbF8ZmrOIH8GdBL6JE0+E8LGNFv4i5RdetNJijTxbqID3k1ONRDlDdAHRqT1RhgLYjPuH4emg1WlzNNG1Tsm0HOSnZQBVTR/GKdf6AfNXlvmtlMe/g6aPjwruVmEK8q3T8XxnDIPz602Qobxw00VY16WMqGq0ZL/YmdhMk6kVv2FB4UWg3pIjEabSqs1m3P9cnPNKwbK1jt46Vez5AzoaQbsUX0XejE=; 25:MgB37WXvr89hmmpOR/ird7G62LSx7UtFFne43b6cmhCNQ3jm40cQ3X1C92miawuL8BjXoGzXAxdEPFBUMrvOWdwwUo/c113sxJn/oPQI4bezwmHetLNUk/rGEyr2NW5BzVPUQADnT9RWpJgEAhJLoSbX9GMnYC1Gyxe4tSx+xG4Z2Ws9RE0FOSX+fiCte+o+9bHc4p+wYK+i+yllZnnR/QfrIajI9qllWfA40eLCEWf8O1cXCRolOVUO3GcSOKfOLdd1hfTvFygzwGIPiXBTXMQpOuHMjvG0bAety0Cq9zfs4RJL+OmWedQFX5b6fekm X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB306; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(13024025)(13015025)(5005006)(13018025)(13017025)(13023025)(3002001)(10201501046); SRVR:BL2PR03MB306; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB306; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB306; 4:uxIUNQ4gCfpSVnSjo0+g9BL3vpnc05letumBQB0rdrwlqX5nfMczXRKKjwZMZNpnbbiO/G8tyF1Vkn89qDwE1CMhER2MnSJ2bg0sDGJKMcQUuTLHAHZx31RechYTQRUyZX3MwC5BuCRuDqPG9LKwnfUSUdiNdFYXKy4sB3HBKl2AbdoRo8EM5hWCJJZKe1YGib/DRWUe9f0OMLitiCz66LE4gjR74P/pkqRvERqxgEAYoAeFi2vrujEvDksOjoHgbI7asi4SOUhRoowNjN0B9ibvk2YbzWMnlDFjuk6vaB3Ymq0kEYZzekSwza+HRpwXsk7WXxM3CgOwfIdAcXYYeIJrsNZz3eRGT4o0clH9KGHEn3Va7Y3Pmvnp9H9O/AMa1gGfXMOPCzFO2VrUAvy0Y6vktfrbcdQaF5EdcLM+OWV4M+HHdhKXhJCEAA3+64IjlZH+WmPbnAqxcZEXHMgAARZyzXGVJweHC9mM597MJa0Xi7U5gSLuzkgWxbz37Puk X-Forefront-PRVS: 085551F5A8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB306; 23:9GLd1qpt5Rho3eUGKUyu4B2fcJzMn7OzYSwIa/J2AZ?= =?us-ascii?Q?bXHBA9uqZj3ctPT+sU/aYrxnjjIvc/Fiu0CmlwqgkcsrZIxeXQCPUnXvOph2?= =?us-ascii?Q?Ub6ntQk3YHx4DuGoWtvJtO1pBVkGwz5u7bbNkEzQ4HDo2fBomjjhLU9gP7vR?= =?us-ascii?Q?pictcDsNGcr2JBpbl1tsOBD8oSIfZz9qEUBuy9921re300Guvg4hbVrhZE0R?= =?us-ascii?Q?VylH6ZaekB/KUiifNFLroudRNTOyU2SO9TWStsTca+Gores9YFpVWbUu1Mo+?= =?us-ascii?Q?305BvLYQeXHZlAEjFeckqea/lzsbVl77hygKpmplaYr3oP9N0f/WMODXeFPs?= =?us-ascii?Q?bYWi4CYt6wHHTUa5YnBwaD2Qac+U3DHUDoFsPsM6f3LdgBGxWgAsdNjNGxGx?= =?us-ascii?Q?IsNRK0o1YP+OuPhaM7aCUnUXFdbQL7AkJAyUeHmheYDwVqeCRK8IqbjhLUAA?= =?us-ascii?Q?9IRSopttO5zrKgQawkv3ZjP77iYo9k3u5C1qzFhtQIqo8SSntxzvRhQmGBEl?= =?us-ascii?Q?rKfLX4nGIGI+1WD63OBLipEPEu/sVxI5DsXtZrFZNuV1P8lsERao0Cfb2Fxh?= =?us-ascii?Q?jhLWaU8Jwc7FOk3kys8nt5+AzmR+B95zfWu8AjZ0JO2+iudb7i1q45QKe56U?= =?us-ascii?Q?Q+Yqoz2PxQcpDMnyyV9/+bYD4ulO1YFwCohQsAggjnbIkBFbwrsVVRCuXJjV?= =?us-ascii?Q?xZbvn59Z0rU0QJcZxO2XFGx0s3ctlVe8nOPmk14SV4KT7ZuAc2IV4Po/KMIo?= =?us-ascii?Q?KrdVzmQASTuyqDB8dKOmqNOHRI+hC9BO1trUeaocHhNHeITF2FSwxg8//ptE?= =?us-ascii?Q?L0Q4tXqDG58WSNaDFQG+juQJ3NCDyayqC1kvOGrKoXxT5eol8kw4Nh3Ap6pf?= =?us-ascii?Q?MfjJELSAVpNleMiIHncytkH+FkLBytomHk1qgdMGbzgypsOxh0eCvwTmo8Wx?= =?us-ascii?Q?Ecn2btX8W/c2dwkqIPeJCYRYqUEAxk90qxYV2i+CMaafz5TK0b8IVoTkJ7Pn?= =?us-ascii?Q?Q=3D?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB306; 5:V+NvucVlw8yckT/iMIxuYUPvyHPabPz4AzecNFKLttXKg7cooh69Nl+sWlaaYqOuRdFLrjjyPzakEENo1Dv2frsKf8XuhWqAV6JqeQFWMIHmBnPHLFAwBI6arW+HW2bSmK4krz+16LmJ/5BR+7JJK3S/bkQr6yDVB0/yX8aBZuU=; 24:7DfDV2m2eS4DQG5RCNYS33Jf5bFIvFBhf/STN0ECcKUpD8kdsaQ/TF9RhnkEekH7R7xnL/1vRT/iprp14xlHj3HXFAwceeyWFes0gY+WKWw= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Feb 2016 15:20:36.3969 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB306 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use %zu for printing 'size_t' type in order to fix the following build warning on ARM64: drivers/spi/spi.c: In function '__spi_split_transfer_maxsize': drivers/spi/spi.c:2278:2: warning: format '%i' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=] Signed-off-by: Fabio Estevam Acked-by: Geert Uytterhoeven --- drivers/spi/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index f6c76be..0725ffa 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -2276,7 +2276,7 @@ static int __spi_split_transfer_maxsize(struct spi_master *master, /* warn once about this fact that we are splitting a transfer */ dev_warn_once(&msg->spi->dev, - "spi_transfer of length %i exceed max length of %i - needed to split transfers\n", + "spi_transfer of length %i exceed max length of %zu - needed to split transfers\n", xfer->len, maxsize); /* calculate how many we have to replace */