summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
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 /drivers/mmc
parent8434f0357624ad7345450d8c765264637dfd7cd1 (diff)
downloadtalos-obmc-uboot-0ea5a04fbcd72ebb37eb4b3f744374fdf551d3b7.tar.gz
talos-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 'drivers/mmc')
-rw-r--r--drivers/mmc/sunxi_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
index 7b33094d84..44d1a768c1 100644
--- a/drivers/mmc/sunxi_mmc.c
+++ b/drivers/mmc/sunxi_mmc.c
@@ -339,7 +339,7 @@ static int sunxi_mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
cmdval |= SUNXI_MMC_CMD_CHK_RESPONSE_CRC;
if (data) {
- if ((u32) data->dest & 0x3) {
+ if ((u32)(long)data->dest & 0x3) {
error = -1;
goto out;
}
OpenPOWER on IntegriCloud