commit | eccd5403814b4e762e270ef0464bb86fb217b1bf | [log] [tgz] |
---|---|---|
author | Andrew Lunn <andrew@lunn.ch> | Tue Nov 10 03:40:23 2020 +0100 |
committer | Jakub Kicinski <kuba@kernel.org> | Thu Nov 12 14:32:31 2020 -0800 |
tree | 69d56552e881fcfd273c08b20de1773dcfaaf3c4 | |
parent | 27b42557988d40340c9eb219f8f756f821f3649c [diff] |
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>