payloads/coreinfo: Use correct integer types for loop indices
Make sure that the type of the loop index matches the type of the upper bound. This fixes several -Wsign-compare warnings. Change-Id: I73a88355d86288609e03f7a6fcaec14dfedac203 Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33863 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
committed by
Martin Roth
parent
37bec0b397
commit
a711e9c44d
@@ -29,9 +29,7 @@ static unsigned long tick_freq_mhz;
|
||||
|
||||
static const char *timestamp_name(uint32_t id)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(timestamp_ids); i++) {
|
||||
for (size_t i = 0; i < ARRAY_SIZE(timestamp_ids); i++) {
|
||||
if (timestamp_ids[i].id == id)
|
||||
return timestamp_ids[i].name;
|
||||
}
|
||||
@@ -184,7 +182,7 @@ static int timestamps_module_init(void)
|
||||
prev_stamp = base_time;
|
||||
|
||||
total_time = 0;
|
||||
for (int i = 0; i < n_entries; i++) {
|
||||
for (u32 i = 0; i < n_entries; i++) {
|
||||
uint64_t stamp;
|
||||
const struct timestamp_entry *tse = ×tamps->entries[i];
|
||||
|
||||
|
Reference in New Issue
Block a user