summaryrefslogtreecommitdiff
path: root/src/commonlib
diff options
context:
space:
mode:
authorShelley Chen <shchen@google.com>2023-01-11 15:59:31 -0800
committerElyes Haouas <ehaouas@noos.fr>2023-01-14 05:23:20 +0000
commit83ac83015a5180a8acd351db3bc7ac188bd88dd1 (patch)
treef82218e5b1cc0871373cc1b2d8037eb0e8db2e7b /src/commonlib
parente8d4baca77cd34d6c6f5ee3997972c3517ce3bf2 (diff)
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 <shchen@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71828 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/commonlib')
-rw-r--r--src/commonlib/storage/pci_sdhci.c2
1 files changed, 1 insertions, 1 deletions
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)) {