diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2024-01-30 22:05:40 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-02-01 11:37:17 +0000 |
commit | 5ab978f5ded4a0d964b548d6cb25ac4a9cc7683b (patch) | |
tree | 8c368e5067f27b85c9847353c84f8d66c7d228af /src/soc/amd/common | |
parent | e4594f12cb4c2f02b3764b95887f8f2be869af1d (diff) | |
download | coreboot-5ab978f5ded4a0d964b548d6cb25ac4a9cc7683b.tar.gz coreboot-5ab978f5ded4a0d964b548d6cb25ac4a9cc7683b.tar.bz2 coreboot-5ab978f5ded4a0d964b548d6cb25ac4a9cc7683b.zip |
soc/amd/*/root_complex: use unsigned long for resource index
Use an unsigned long as resource index type instead of an int to match
the data type used for the index in the resource struct.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I0f58e32a535326116460545287cc59aaf94166a0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80267
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Varshit Pandya <pandyavarshit@gmail.com>
Diffstat (limited to 'src/soc/amd/common')
-rw-r--r-- | src/soc/amd/common/block/include/amdblocks/root_complex.h | 2 | ||||
-rw-r--r-- | src/soc/amd/common/fsp/fsp_report_resources.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/root_complex.h b/src/soc/amd/common/block/include/amdblocks/root_complex.h index d774af0d3b1d..0eef5e8ae55a 100644 --- a/src/soc/amd/common/block/include/amdblocks/root_complex.h +++ b/src/soc/amd/common/block/include/amdblocks/root_complex.h @@ -27,6 +27,6 @@ const struct non_pci_mmio_reg *get_iohc_non_pci_mmio_regs(size_t *count); signed int get_iohc_fabric_id(struct device *domain); -void read_fsp_resources(struct device *dev, unsigned int *idx); +void read_fsp_resources(struct device *dev, unsigned long *idx); #endif /* AMD_BLOCK_ROOT_COMPLEX_H */ diff --git a/src/soc/amd/common/fsp/fsp_report_resources.c b/src/soc/amd/common/fsp/fsp_report_resources.c index bcc071598217..37049fb0dfdc 100644 --- a/src/soc/amd/common/fsp/fsp_report_resources.c +++ b/src/soc/amd/common/fsp/fsp_report_resources.c @@ -7,7 +7,7 @@ #include <fsp/util.h> #include <types.h> -void read_fsp_resources(struct device *dev, unsigned int *idx) +void read_fsp_resources(struct device *dev, unsigned long *idx) { const uint32_t mem_usable = (uintptr_t)cbmem_top(); const struct hob_header *hob_iterator; |