]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: sunxi: Fix warnings with CONFIG_PHYS_64BIT
authorAndre Przywara <andre.przywara@arm.com>
Thu, 29 Apr 2021 08:31:58 +0000 (09:31 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sat, 10 Jul 2021 00:22:09 +0000 (01:22 +0100)
commit16deacbf823092be0388cb828b0d5675b6bfc587
treeeef36469422068cd55ab7863155047d6e89170b0
parent0d7084a5271f26f8d7432ef72d85bf9cbfc15269
mmc: sunxi: Fix warnings with CONFIG_PHYS_64BIT

When enabling PHYS_64BIT on 32-bit platforms, we get two warnings about
pointer casts in sunxi_mmc.c. Those are related to MMIO addresses, which
are always below 1GB on all Allwinner SoCs, so there is no problem with
anything having more than 32 bits.

Add the proper casts to make it compile cleanly.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/sunxi_mmc.c