]> git.baikalelectronics.ru Git - kernel.git/commit
net: fsl: avoid 64-bit warning on pq_mdio
authorArnd Bergmann <arnd@arndb.de>
Tue, 8 Dec 2015 15:17:29 +0000 (16:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Dec 2015 03:51:56 +0000 (22:51 -0500)
commitf34f29a57edf6f622f0a62e5ee9e348863d5cc62
treeae7b4d0d79d784e92c40076e782ca2424a3d608d
parent912af5473159d7e0957783ed863a24248e25f497
net: fsl: avoid 64-bit warning on pq_mdio

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@arndb.de>
Fixes: fcd1a4ed407e ("net: fsl: expands dependencies of NET_VENDOR_FREESCALE")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fsl_pq_mdio.c