From 83ac83015a5180a8acd351db3bc7ac188bd88dd1 Mon Sep 17 00:00:00 2001 From: Shelley Chen Date: Wed, 11 Jan 2023 15:59:31 -0800 Subject: [PATCH] commonlib/storage: fix int-to-pointer-cast error When pulling in commonlib/storage/pci_sdhci.c into herobrine, am seeing an "error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]", so fixing that. BUG=b:254092907 BRANCH=None TEST=emerge-herobrine coreboot Make sure that we can build without errors Change-Id: Ib1718f156708a619f7eeb181e19b1a8c620de1f8 Signed-off-by: Shelley Chen Reviewed-on: https://review.coreboot.org/c/coreboot/+/71828 Reviewed-by: Eric Lai Reviewed-by: Julius Werner Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas --- src/commonlib/storage/pci_sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonlib/storage/pci_sdhci.c b/src/commonlib/storage/pci_sdhci.c index e180d9f48e..2f9b648130 100644 --- a/src/commonlib/storage/pci_sdhci.c +++ b/src/commonlib/storage/pci_sdhci.c @@ -39,7 +39,7 @@ struct sd_mmc_ctrlr *new_mem_sdhci_controller(void *ioaddr) struct sd_mmc_ctrlr *new_pci_sdhci_controller(pci_devfn_t dev) { - uint32_t addr; + uintptr_t addr; addr = pci_s_read_config32(dev, PCI_BASE_ADDRESS_0); if (addr == ((uint32_t)~0)) {