From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: fsl: avoid 64-bit warning on pq_mdio Date: Tue, 08 Dec 2015 22:52:23 -0500 (EST) Message-ID: <20151208.225223.1912207413262330164.davem@davemloft.net> References: <2847304.4thPqtFFJS@wuerfel> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: gerlando.falauto@keymile.com, netdev@vger.kernel.org, Shaohui.Xie@freescale.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org To: arnd@arndb.de Return-path: In-Reply-To: <2847304.4thPqtFFJS@wuerfel> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Arnd Bergmann Date: Tue, 08 Dec 2015 16:17:29 +0100 > The pq_mdio driver can now be built for ARM64, where we get a format > string warning: > > drivers/net/ethernet/freescale/fsl_pq_mdio.c: In function 'fsl_pq_mdio_probe': > drivers/net/ethernet/freescale/fsl_pq_mdio.c:467:25: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long int' [-Wformat=] > > The argument is an implicit ptrdiff_t from the subtraction of two pointers, > so we should use the %z format string modifier to make this work on 64-bit > architectures. > > Signed-off-by: Arnd Bergmann > Fixes: fe761bcb9046 ("net: fsl: expands dependencies of NET_VENDOR_FREESCALE") Applied.