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/cezanne | |
parent | e4594f12cb4c2f02b3764b95887f8f2be869af1d (diff) |
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/cezanne')
-rw-r--r-- | src/soc/amd/cezanne/root_complex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/cezanne/root_complex.c b/src/soc/amd/cezanne/root_complex.c index ad23306e4f..20cea054ba 100644 --- a/src/soc/amd/cezanne/root_complex.c +++ b/src/soc/amd/cezanne/root_complex.c @@ -104,7 +104,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(); |