summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-sunxi/cpu_info.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-03-29 17:29:09 +0200
committerHans de Goede <hdegoede@redhat.com>2016-04-01 09:52:28 +0200
commit0ea5a04fbcd72ebb37eb4b3f744374fdf551d3b7 (patch)
tree0c4ee763250d33057c6ac5ca7fa085d3757b438b /arch/arm/mach-sunxi/cpu_info.c
parent8434f0357624ad7345450d8c765264637dfd7cd1 (diff)
downloadblackbird-obmc-uboot-0ea5a04fbcd72ebb37eb4b3f744374fdf551d3b7.tar.gz
blackbird-obmc-uboot-0ea5a04fbcd72ebb37eb4b3f744374fdf551d3b7.zip
sunxi: Explicitly cast u32 pointer conversions
Some parts of the sunxi code cast explicitly between u32 values and pointers. This is not a problem in practice, because all 64bit SoCs today only use the lower 32 bits for their phyical address space. But we need to make sure that the compiler is sure this is not an accident as well. Signed-off-by: Alexander Graf <agraf@suse.de> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'arch/arm/mach-sunxi/cpu_info.c')
-rw-r--r--arch/arm/mach-sunxi/cpu_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-sunxi/cpu_info.c b/arch/arm/mach-sunxi/cpu_info.c
index c0eabdf91d..b885ea1f0a 100644
--- a/arch/arm/mach-sunxi/cpu_info.c
+++ b/arch/arm/mach-sunxi/cpu_info.c
@@ -105,7 +105,7 @@ int sunxi_get_sid(unsigned int *sid)
int i;
for (i = 0; i< 4; i++)
- sid[i] = readl(SUNXI_SID_BASE + 4 * i);
+ sid[i] = readl((ulong)SUNXI_SID_BASE + 4 * i);
return 0;
#else
OpenPOWER on IntegriCloud