[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20151208.225223.1912207413262330164.davem@davemloft.net>
Date: Tue, 08 Dec 2015 22:52:23 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: arnd@...db.de
Cc: gerlando.falauto@...mile.com, netdev@...r.kernel.org,
Shaohui.Xie@...escale.com, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] net: fsl: avoid 64-bit warning on pq_mdio
From: Arnd Bergmann <arnd@...db.de>
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 <arnd@...db.de>
> Fixes: fe761bcb9046 ("net: fsl: expands dependencies of NET_VENDOR_FREESCALE")
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists