From patchwork Wed Feb 17 17:42:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 8341791 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 C7C33C0553 for ; Wed, 17 Feb 2016 17:57:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E51CC2022D for ; Wed, 17 Feb 2016 17:57:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C762120220 for ; Wed, 17 Feb 2016 17:57:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161014AbcBQR5t (ORCPT ); Wed, 17 Feb 2016 12:57:49 -0500 Received: from mail-bn1on0060.outbound.protection.outlook.com ([157.56.110.60]:50970 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1030237AbcBQR5s (ORCPT ); Wed, 17 Feb 2016 12:57:48 -0500 X-Greylist: delayed 903 seconds by postgrey-1.27 at vger.kernel.org; Wed, 17 Feb 2016 12:57:47 EST Received: from BY2PR03CA004.namprd03.prod.outlook.com (10.255.93.21) by CY1PR03MB1502.namprd03.prod.outlook.com (10.163.17.20) with Microsoft SMTP Server (TLS) id 15.1.409.15; Wed, 17 Feb 2016 17:42:42 +0000 Received: from BY2FFO11FD039.protection.gbl (10.255.93.4) by BY2PR03CA004.outlook.office365.com (10.255.93.21) with Microsoft SMTP Server (TLS) id 15.1.409.15 via Frontend Transport; Wed, 17 Feb 2016 17:42:42 +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 BY2FFO11FD039.mail.protection.outlook.com (10.1.14.224) with Microsoft SMTP Server (TLS) id 15.1.415.6 via Frontend Transport; Wed, 17 Feb 2016 17:42:41 +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 u1HHgdZj022870; Wed, 17 Feb 2016 10:42:39 -0700 From: Fabio Estevam To: CC: , , Fabio Estevam Subject: [PATCH v2 1/2] spi: core: Use %zu for printing 'size_t' type Date: Wed, 17 Feb 2016 15:42:27 -0200 Message-ID: <1455730948-24938-1-git-send-email-fabio.estevam@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131002045620772079; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD039; 1:6Ft2zwUECB5nPtrRxmQzm+Bcm+1kx3xW/k8FrPeWXlPrRf66gnZa+oNdFydVmhgEFsY9JeCRseQJudSuiycgDIhUngRxlCFCEFogMmgjYlv0E2pSIvHgOuj2C7lZ2wow6wmGRtjaXJTbBHhBmXpJ7KIqjzr0lmH//jV8HhtgoXeR3iw2mzK3XB38vpx+QbSSPPwfI30NIdYJx+zEzJX0rrr8yeAnjCRprcPO8QL2N5DL0vw9FDV+VsAw99TJTf7ssGgAPBRa1CppEBknZnaT1DIhGV9EC5vPyphuhb2p63emqzFW7k09p6WKb6ju+gZaR8WtBb2faQgDzshU4vz5gOPqy0STxhqHji7tO4KhLq7Uk0TkS9+7/n1BNwC356sJKNRfrSs3NAnLKwZrKQ27Snk9um0tFMDxSGrflPBNMY8yumS7i3UbNUiU+OoTWIk41s4cHd+E/hVrFVPujGcJTA1YnpwoJQ//39Uw3ZD3JW3wV4CXpjg0yz1OOqYE6wiG1fAkUsgwKnT2ylHSeGW3wZZE7HxQH9HsCL3kM8n2SX1YGB7DyGGYEjl0F5g7hgYO8rCjzKA7Dq4mmkA1SBxZ/w== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(85426001)(19580395003)(19580405001)(104016004)(50226001)(5008740100001)(6806005)(48376002)(1096002)(229853001)(11100500001)(2351001)(86362001)(77096005)(106466001)(105606002)(1220700001)(47776003)(586003)(189998001)(110136002)(5003940100001)(92566002)(36756003)(87936001)(4326007)(2906002)(50986999)(33646002)(5001960100002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB1502; 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: 167beee6-e8f7-477f-5cef-08d337c1bc8a X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1502; 2:BXocv8n3avjAMRBcbEWzhCHgyZq8kA3u7zV3bWRLD45Cmo9mZKxKdLv1BWdw38vM9tbdWiV2XgZu+AYgFp2x+vUYLk/uoQe0lsC+Hi07+oJ40qvdtSpIrTVXe0yQqgXv1a9VkE/Pg8Lk9sYJqaz+zepTfhEGUlXRQ6cFigPBWRhN23KW4OPcTO1RSFB2N9Em; 3:vobY/YlRa9+Lzb0KzqIj8SSYpGkT0T5UCRAKsRQJXJ8k8xBqZufKV8ra3ZXnIaRvQAZzkD1S3jxaKLz9N+A02X34JN+4XYuBJQPy+enRZA1AwV5uDhebWqvhk1sdfKsFQPO/rOxKQZ3YvFKkzdHkkf4prFlqHasbpcjwfyuwOhjIWhvrOqUnDfqgEeJYIXcWyBr3pfd2oZpnQnrW/khIesxDpmDx/ZluCVinEzv3ghI=; 25:YC3IZ613i2tVo5a3rAyRk6FjAUQxz0M+exBViAffzkTI3PoQSgJR9XsTE+5Ad3cWX2aHNUiBser43aIdfq63rIbdQ+9eUrA5agd9A7riJRlXA3VKC/FIN/yIutiwNJx8eLqexTegzsVlz6xncFfD/0k7I1fKs5lLYS+xkEZTUzphCi3UkZ4U152EzC8+hTJG/iuf9VE01T4daDTNJE+93agHf0PuzXYfJKuOGT3gk1Nn/31jPQMA08DZ0P+LGUKzamskBvHBUFi1lWkpFL6lVuzjQXmyBlysNWyNSPPfAT77WzbTBaFhXlQco4NK4GOm X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1502; 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:CY1PR03MB1502; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR03MB1502; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1502; 4:M6FIwUiMB+VK2dSuKuNwo7g0zkSoLfAgt4nBZ1FQAUpSv126wHZBOKW//FLatJ9D6kHIxtOWQuPO93hI1zwvygJ5PxHPeWengtEhwJlivcV6i/qgVRMAPpRuZYWqHnKRhYcFAijoCoI7kR3/28kTBhrX2uSQa2su2I7qWX9D9ZrgHylsBw/cza6uY5xcTrsDANAvBHZIypI2QBtpjMAEEtz8kfuVs/ZSPCO5y3wRoKcXtx61Pkedr7nEibZLwlLqouBOJKeIk6bJnempoxGIXu09SSZLM8+HNbN1/IIdeR59DXG5NkmnGTaQyrEkh021B1KSOz26/wOmok2cHW9WmmARZctSaAby14mKvB/BKEwAKH/RDtq4a79dgWMNPICV5LBAexpXTx+HQQGaS386DQLDxxc27pJp1c5G1J2/OeF8SbtPe1scgmEWX3kzAtQSk+zcH3lwGYB95Aim/tHWrZykglDP3kNKdzy0+5+Pe/8ggrZXtn+KnQ0UKim0/Btz X-Forefront-PRVS: 085551F5A8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB1502; 23:fnrYa6OasufinVLX1qOCCgHEVeexv2INfta+bLCQB?= =?us-ascii?Q?7Z5XNEP43VQ9hi57t7ZZm/GM6GBhelP/5KoFkeEmIyb87FBlWpKXWyMHJPgn?= =?us-ascii?Q?9msvkB/WlF6GlC/1RC3h1oVAQsgvZbBGaSRSoSNYpKTp0QErhatD16SoaCzT?= =?us-ascii?Q?Pqm26uD2q3XyfwZiTMnL3e/Pr3l0ECezGCGLLZWuS/4/WGHkqtlhgVoi4iwi?= =?us-ascii?Q?1Qx3cjpPt+BJzyr5EM5ZfsyebZMoevRL29QAAHZBOB8IkSp5ylIseB7FNnra?= =?us-ascii?Q?dB0IhtY65vWKLAT4Om4SutzbiebJG7hvjgCl1mQ03ITeHHEsILWPWyIYyCd6?= =?us-ascii?Q?WYxQIl3nR7EKq4don2hh6K9OixGm9tRdw8ymCuNf+7k/0MRGS8Xkj6du/e/7?= =?us-ascii?Q?0TVNFivl3cO2R8mA6FsD8y6NTNCKmp4fUCEMlFCle77UgOXwWXNFb9nSa5DS?= =?us-ascii?Q?p0T4+/iluLr0esi5MXJ4RrqCi5t+p8osgMt2Qc9+hpZ3AJK/CrkbjDKAHBJv?= =?us-ascii?Q?qdUB5s1Twp/vSNrx4abUAwBuvNYnc5fJaOoDu6UtKL7DSxd1kYLA/LVUzfU4?= =?us-ascii?Q?z8gp/ZyDzcfqMLXF3mI2LB/D/8frFyfZj4XnFgD5/QwSnhEGnWhnMyNmBPaz?= =?us-ascii?Q?sb0ZO4wjQ9jDGgo8FIl8MTMWR+ADkazxCRim2YAITKHDZpFGEjzlRAm1gISO?= =?us-ascii?Q?45BpNzBC0JHF1/04Uvv6NHygEDrcw4qAZxajrRX6jPOvLsQwkqG/MQczgj36?= =?us-ascii?Q?Slid93Y0U7SDFwxIBaymX2rALSqINT3b/ybbzsFi80kfw7P/qVGJUgbFYoNo?= =?us-ascii?Q?0O7d9ILqIlM8f/t4ihOKbIaXKnIYId8QOlb6C69qkeqcXa8TK2eQDTsgwELZ?= =?us-ascii?Q?eTPum2ML07zCMIPBYZ+/lcL/HOitT9SYhVgXtm1BGuxJ4DWqawzgNvTztCy2?= =?us-ascii?Q?W+3HgpICD1wGUSlPloR7XN5ywVOAyQPP8QXdEvw0WbBA5obUJpQywOICA/ce?= =?us-ascii?Q?mrIDYsbC5Q2cyHaWlxXN+vm?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1502; 5:Q8DFQIRt0q1R33kgV0T2dOaUN79fsPDQNUX8wlduV6bQpr7yUYpa3NCkOD/272p4D2fZpuK4VLqX+VAkPInqLaK19rPqZA+2Oc7lzgWyZw8qCUqL6XgeiAskJDzLHaY471vi4shquTt/6U5IQ5q6aduqGywSw4DVVKiHOTogbB4=; 24:sBAKdNFFDFnOZUZTPSewQjrllX9Uwbod0scN/rnzCx6bjfol4rjFHZiSf7sXqDtY23etTzG7Aq+fZKLymUHUHrNxOnbrASAgPWGLc9Csl5s= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Feb 2016 17:42:41.7340 (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: CY1PR03MB1502 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 Acked-by: Martin Sperl -- --- Changes since v1: - None 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 */