From 5ab978f5ded4a0d964b548d6cb25ac4a9cc7683b Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 30 Jan 2024 22:05:40 +0100 Subject: 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 Change-Id: I0f58e32a535326116460545287cc59aaf94166a0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80267 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Varshit Pandya --- src/soc/amd/phoenix/root_complex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/amd/phoenix/root_complex.c') diff --git a/src/soc/amd/phoenix/root_complex.c b/src/soc/amd/phoenix/root_complex.c index ba263d5329..82216aec7e 100644 --- a/src/soc/amd/phoenix/root_complex.c +++ b/src/soc/amd/phoenix/root_complex.c @@ -119,7 +119,7 @@ struct dptc_input { static void read_resources(struct device *dev) { uint32_t mem_usable = (uintptr_t)cbmem_top(); - unsigned int idx = 0; + unsigned long idx = 0; uintptr_t early_reserved_dram_start, early_reserved_dram_end; const struct memmap_early_dram *e = memmap_get_early_dram_usage(); -- cgit v1.2.3