drivers: net: xilinx_emaclite: Fix -Wpointer-to-int-cast warnings with W=1
authorAndrew Lunn <andrew@lunn.ch>
Tue, 10 Nov 2020 02:40:23 +0000 (03:40 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 22:32:31 +0000 (14:32 -0800)
commiteccd5403814b4e762e270ef0464bb86fb217b1bf
tree69d56552e881fcfd273c08b20de1773dcfaaf3c4
parent27b42557988d40340c9eb219f8f756f821f3649c
drivers: net: xilinx_emaclite: Fix -Wpointer-to-int-cast warnings with W=1

drivers/net/ethernet//xilinx/xilinx_emaclite.c:341:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  341 |   addr = (void __iomem __force *)((u32 __force)addr ^

Use uintptr_t instead of u32 to avoid problems on 64 bit systems.

Also, cast the address to an unsigned long for printing.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xilinx/xilinx_emaclite.c