From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965445AbdCXOPW (ORCPT ); Fri, 24 Mar 2017 10:15:22 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:42720 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936108AbdCXOO7 (ORCPT ); Fri, 24 Mar 2017 10:14:59 -0400 Date: Fri, 24 Mar 2017 22:14:27 +0800 From: Herbert Xu To: Arnd Bergmann Cc: "David S. Miller" , Mahipal Challa , Jan Glauber , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: zip - add a cast for printing atomic64_t values Message-ID: <20170324141427.GH14780@gondor.apana.org.au> References: <20170320123955.4061033-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170320123955.4061033-1-arnd@arndb.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 20, 2017 at 01:39:16PM +0100, Arnd Bergmann wrote: > kernelci.org reports a build-time regression on linux-next, with a harmless > warning in x86 allmodconfig: > > 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 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 5 has type 'long long int' [-Wformat=] > > The return type for atomic64_read() unfortunately differs between > architectures, with some defining it as atomic_long_read() and others > returning a 64-bit type explicitly. Fixing this in general would be nice, > but also require changing other users of these functions, so the simpler > workaround is to add a cast here that avoids the warnings on the default > build. > > Fixes: 09ae5d37e093 ("crypto: zip - Add Compression/Decompression statistics") > Signed-off-by: Arnd Bergmann Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt