diff options
author | Arnd Bergmann <[email protected]> | 2017-08-24 13:19:08 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2017-08-24 17:26:50 -0700 |
commit | e593beaf60e003c4e0d65e6ea9ceb75c2971afbc (patch) | |
tree | 45373535747f49b41746e175f7f2db70f0f4fe6b /tools/perf/scripts/python/stackcollapse.py | |
parent | cad2be29978df5d27475890c153f20b8ee9f41d1 (diff) |
phy: ralink: fix 64-bit build warning
Casting between an 'int' and a pointer causes a warning on
64-bit architectures in compile-testing this driver:
drivers/phy/ralink/phy-ralink-usb.c: In function 'ralink_usb_phy_probe':
drivers/phy/ralink/phy-ralink-usb.c:195:13: error: cast from pointer to
integer of different size [-Werror=pointer-to-int-cast]
This changes the code to cast to uintptr_t instead. This is
guaranteed to do what we want on all architectures and avoids
the warning.
Fixes: 2411a736ff09 ("phy: ralink-usb: add driver for Mediatek/Ralink")
Acked-by: John Crispin <[email protected]>
Tested-by Harvey Hunt <[email protected]>
Reviewed-by Harvey Hunt <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Kishon Vijay Abraham I <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions