Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754703AbdCTMb2 (ORCPT ); Mon, 20 Mar 2017 08:31:28 -0400 Received: from mail-co1nam03on0085.outbound.protection.outlook.com ([104.47.40.85]:54784 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754604AbdCTMbS (ORCPT ); Mon, 20 Mar 2017 08:31:18 -0400 Authentication-Results: google.com; dkim=none (message not signed) header.d=none;google.com; dmarc=none action=none header.from=caviumnetworks.com; Date: Mon, 20 Mar 2017 13:30:53 +0100 From: Jan Glauber To: Dmitry Vyukov Cc: Stephen Rothwell , Andrew Morton , Herbert Xu , linux-next@vger.kernel.org, LKML , Mahipal Challa Subject: Re: linux-next: build warnings after merge of the akpm-current tree Message-ID: <20170320123053.GB11825@hardcore> References: <20170320162226.47c6e3ed@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [88.67.130.225] X-ClientProxiedBy: DB6PR02CA0017.eurprd02.prod.outlook.com (10.170.218.158) To CY1PR07MB2586.namprd07.prod.outlook.com (10.167.16.136) X-MS-Office365-Filtering-Correlation-Id: 2f1ce5f9-d2bf-4a31-513c-08d46f8cf9c5 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY1PR07MB2586; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2586;3:RPMgwrVb8lMXqX0htVfW8bWf6Q/i4T//R4ombZBnu0BKfaQ/tcIGplcpoTuVceMXSz+CgwcVK7FWjS3IakXhTar7ZC5injo9dw+eH68xKRB0KWwI/3YpGZ05ZvtLj2qjH3lAqzgTrkgcZLsb8ME9TLGlFUsSxNNRIYEqyGRfwt7o2emTi14lAqL3VxF8EZcfjhLFCNWGA/dyf6e5kIOdwCCt5XUKfOOLDmYY0EzFDP5mAY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81uecGtBZnpwX75s8h2+XX5v7a5Yl3M0MIu1N6FU7v5cNZ4cx8A/56yqUfNT0t0asqUfmWzFgdkg8jYHpjBlRbI9XmoywmN3lko1B36Xeo44nyDVrulQ4pqKFwgKnySwO7kyX6yXers7qV24ITWAFQ3iCan23rqGwEBkkJV2+qY2JF772aSsQx9TyWPVs11H7ftEqGw9wXq0W53nH9oRFRF5NwRtdCehebE3U56HvgehW1l7J9cYZLLSMhRYVXGKHRksyL0yWG9FMJah++KgTFvBCd4fCtKYi2Q6vJN8iecWU1sAfthvbQ7dTrTM4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123560025)(20161123558025)(6072148);SRVR:CY1PR07MB2586;BCL:0;PCL:0;RULEID:;SRVR:CY1PR07MB2586; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2586;4:Yz3pNaib3LiIRE1D2fmS2Py/fXY324sGqFuBrH3MY6M+iltq9lJMJMIlx58Zd1Ae/1YTJ/Gs9xW93syPmdLh27CeDTEMiLhHZZLO9ECVzlakF+4Q1errrQpxUEjMtmJokNOgiJXc9/qJMPWPplCksOt4gMUbO2Z+NoSV0nKbXXaMlgynvXfOW/01WsYTdZFC4VRAiJ5DfKoR4au4AkOoADqh3FRYID7cOAM8WgLdYT+3GlpGXTo4QonCOkpIu/ZnSDeJCendAQlBsaJyxspfsLZj79n7GvfO5h9V5ZK5Zw4DpW6+iFZZDwmcrfl/AYeMgg/KJIdkjwaxFPTgHXRhB9Zhg0zdqONHPd2QpgaI8bjzSDAYbgRxHNwX8IFLXVwtCACeA+OEBzmnz8DkR1xJT0MDCdece/d+YZyDFLjS1MoEdUOjFD9OiyJRPrTH0zLkCCdyjgVBIhH7m+kv+OJXswdSZ5De7sv57J/sf4f68MI/dRvZkYL72bPYdtOcVuEvl68+dgjtLgev7WhlKneOGjPqha66EpWfmfSH4HoPIkgktzgeh1rS0x2b9U/lfdoXxfOT50Rp71RpOTBJ0+iz3XtCTY44IvyKvAdm/UrhWWI= X-Forefront-PRVS: 02524402D6 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39830400002)(39450400003)(24454002)(377454003)(66066001)(47776003)(305945005)(33656002)(6666003)(229853002)(6916009)(42882006)(8676002)(81166006)(83506001)(6116002)(2950100002)(3846002)(25786008)(53546008)(107886003)(42186005)(6496005)(4326008)(7736002)(53936002)(54906002)(5660300001)(9686003)(55016002)(54356999)(50986999)(76176999)(2906002)(33716001)(189998001)(1076002)(110136004)(4001350100001)(38730400002)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB2586;H:hardcore;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR07MB2586;23:4Cv+XqqLPHq6zzbpEppUO/3whaMS9z71IH917Qdx7?= =?us-ascii?Q?73Guwt0O94OD8pZzKj9P3kPWBhCYomGaPZi0BRClWdH0+yTJ39F/MgwVjBj6?= =?us-ascii?Q?U6G68ekrCtQFK4yn799fLd+NMZ8qB+l/EHcD+JWQlPRd5f2G9Rj2pvVTS8NK?= =?us-ascii?Q?WSyCvXxnErC7itHXUEJKWcpqHdAx/dMrW+SxwtmGvX+OkmhERE4h0Wvc4pye?= =?us-ascii?Q?+6xQqKdVfF+QQjXKxm6/5x+/QkhkTslZNTugD4Elsz9O6EBEgsU06beSWj9V?= =?us-ascii?Q?aQUm/oOccLHPoHQmW/ioYjDpb+dnFKpmI6odOndmTC9RXlvfbfJiMsb/LtZR?= =?us-ascii?Q?h3J1jopgeozWqBc+3OOGxuB2ElLd1pQDBJBcl2i5H2WYGgpn27X7rmfvQ8Wl?= =?us-ascii?Q?v6bJo/+gEuq1y9frhPp/D1pkJE+JGqLs6cVX5AF5cJTMyV3ur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+qy4gtH4AAOdteGjx44+MEHEPsHq704qz4IPLv9uHJn/B+KSz+cS6ZC4AK1om+6CzbFJUuI1ROvXOlFsQGEDIH9H6Jja+jh7StgdQiFqkjnmerOo5mrc3nRCpgA483MArEVww0rabm1WWkxbXDci04Oi/vsvdEIIA==;5:63NB9So6W0b7oZXO2xfyzYhrA+z1rBlX3X3U4yg1yiLeGYXJEqVr920v7xsuOJlR71RFpqPDfLv37psKP6VWhRTOSM/KNl2kpdsAvorezzPIZmrTd+MhsZ1cRRZ6bChY0Xi/h4xYw9/qKHiYlZtw/g==;24:BTmfpCQGaSSD9t+3OliSnPWhIQUqNVWbqzZzFpfNjE52+7JyWpozrfaGHo8q4ylxEwOkIAVBHgcs5PO30jP5llrwylAMQXLYnS/2kQ6mt6o= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2586;7:qoQms/Ek4sd8ODoC6wN6JBz2gdXAai3OfKm38vC7kfODPh6VESiogOsJc1ZHFaMr+foLrt9vp2n0ghZidDg1LyUO/e2W3dns9r/XSOPNXwWY9CAEbqFeqXwSUmCsKJnJipCAToJCatwUeFZXiZN5S2PU4Wj1qmntMtq+BE77U5j3Mp3Dgh5LEH3riFHL1GD6KP2njLew01Uc9GrkdIKiNxJ1oRVnsr4B2tbq2w/FRuh/exLPvU4fLC6yM3nDzrjoPf4VpLpqLd9DVEw8hPGftbwkAupZGZZj/w3JVul0xlq43M9whY+W+IXY/nCTNtKFfvzYdGkt5AnP+NU17dsCUQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2017 12:31:02.5370 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2586 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3241 Lines: 56 On Mon, Mar 20, 2017 at 10:05:54AM +0100, Dmitry Vyukov wrote: > On Mon, Mar 20, 2017 at 6:22 AM, Stephen Rothwell wrote: > > Hi Andrew, > > > > After merging the akpm-current tree, today's linux-next build (x86_64 > > allmodconfig) produced these warnings: > > > > drivers/crypto/cavium/zip/zip_main.c: In function 'zip_show_stats': > > drivers/crypto/cavium/zip/zip_main.c:489:18: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'long long int' [-Wformat=] > > seq_printf(s, " ZIP Device %d Stats\n" > > ^ > > drivers/crypto/cavium/zip/zip_main.c:489:18: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'long long int' [-Wformat=] > > drivers/crypto/cavium/zip/zip_main.c:489:18: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'long long int' [-Wformat=] > > drivers/crypto/cavium/zip/zip_main.c:489:18: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'long long int' [-Wformat=] > > drivers/crypto/cavium/zip/zip_main.c:489:18: warning: format '%ld' expects argument of type 'long int', but argument 10 has type 'long long int' [-Wformat=] > > drivers/crypto/cavium/zip/zip_main.c:489:18: warning: format '%ld' expects argument of type 'long int', but argument 11 has type 'long long int' [-Wformat=] > > drivers/crypto/cavium/zip/zip_main.c:489:18: warning: format '%ld' expects argument of type 'long int', but argument 12 has type 'long long int' [-Wformat=] > > drivers/crypto/cavium/zip/zip_main.c:489:18: warning: format '%ld' expects argument of type 'long int', but argument 13 has type 'long long int' [-Wformat=] > > drivers/crypto/cavium/zip/zip_main.c:489:18: warning: format '%ld' expects argument of type 'long int', but argument 14 has type 'long long int' [-Wformat=] > > drivers/crypto/cavium/zip/zip_main.c:489:18: warning: format '%ld' expects argument of type 'long int', but argument 15 has type 'long long int' [-Wformat=] > > > > Introduced by commit > > > > 09ae5d37e093 ("crypto: zip - Add Compression/Decompression statistics") > > > > from the crypto tree interacting with commit > > > > 3f4ca3d25e1a ("asm-generic, x86: wrap atomic operations") > > > > from the akpm-current tree. > > > > This latter commit changed atomic64read() from "long" to "long long" > > on x86_64. > > Hi, > > Previously atomic operations returned different types on 32/64 bits. I > think that was pretty unfortunate and could actually lead to lots of > such warnings (as there were no single format specifier that one could > use portably), and was difficult to wrap. So I used "unsigned long > long" for all operations. > I actually suspect that the new zip_main.c code would cause a similar > warning on 32 bits even without my change, because atomic ops already > returned unsigned long long there. The driver depends on 64BIT (HW is 64 bit only). > So I think we need to fix zip_main.c. I'm not entirely sure, all drivers that are available for x86_64 and arm64 and use atomic64_read will show such warnings. One possible solution would be to disable COMPILE_TEST for the zip driver, but that would just hide the issue. --Jan