src/lib: Remove unused function parameters in imd.c
Remove const struct imd *imd and const struct imdr *imdr parameters from the prototypes of imdr_entry_size(), imd_entry_size() and imd_entry_id() functions since they are not used anywhere. Signed-off-by: Anna Karas <aka@semihalf.com> Change-Id: I6b43e9a5ae1f1d108024b4060a04c57f5d77fb55 Reviewed-on: https://review.coreboot.org/c/coreboot/+/43999 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
93d678f8be
commit
215e7fc399
@ -178,7 +178,7 @@ int cbmem_entry_remove(const struct cbmem_entry *entry)
|
||||
|
||||
u64 cbmem_entry_size(const struct cbmem_entry *entry)
|
||||
{
|
||||
return imd_entry_size(&imd, cbmem_to_imd(entry));
|
||||
return imd_entry_size(cbmem_to_imd(entry));
|
||||
}
|
||||
|
||||
void *cbmem_entry_start(const struct cbmem_entry *entry)
|
||||
@ -232,7 +232,7 @@ void cbmem_add_records_to_cbtable(struct lb_header *header)
|
||||
if (e == NULL)
|
||||
break;
|
||||
|
||||
id = imd_entry_id(&imd, e);
|
||||
id = imd_entry_id(e);
|
||||
/* Don't add these metadata entries. */
|
||||
if (id == CBMEM_ID_IMD_ROOT || id == CBMEM_ID_IMD_SMALL)
|
||||
continue;
|
||||
@ -241,7 +241,7 @@ void cbmem_add_records_to_cbtable(struct lb_header *header)
|
||||
lbe->tag = LB_TAG_CBMEM_ENTRY;
|
||||
lbe->size = sizeof(*lbe);
|
||||
lbe->address = (uintptr_t)imd_entry_at(&imd, e);
|
||||
lbe->entry_size = imd_entry_size(&imd, e);
|
||||
lbe->entry_size = imd_entry_size(e);
|
||||
lbe->id = id;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user