Skip to content

Commit f59a7ec

Browse files
committed
efi/libstub: smbios: Drop unused 'recsize' parameter
We no longer use the recsize argument for locating the string table in an SMBIOS record, so we can drop it from the internal API. Signed-off-by: Ard Biesheuvel <[email protected]>
1 parent eb68440 commit f59a7ec

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

drivers/firmware/efi/libstub/efistub.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,14 +1122,13 @@ struct efi_smbios_type4_record {
11221122
};
11231123

11241124
#define efi_get_smbios_string(__record, __type, __name) ({ \
1125-
int size = sizeof(struct efi_smbios_type ## __type ## _record); \
11261125
int off = offsetof(struct efi_smbios_type ## __type ## _record, \
11271126
__name); \
1128-
__efi_get_smbios_string((__record), __type, off, size); \
1127+
__efi_get_smbios_string((__record), __type, off); \
11291128
})
11301129

11311130
const u8 *__efi_get_smbios_string(const struct efi_smbios_record *record,
1132-
u8 type, int offset, int recsize);
1131+
u8 type, int offset);
11331132

11341133
void efi_remap_image(unsigned long image_base, unsigned alloc_size,
11351134
unsigned long code_size);

drivers/firmware/efi/libstub/smbios.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const struct efi_smbios_record *efi_get_smbios_record(u8 type)
3838
}
3939

4040
const u8 *__efi_get_smbios_string(const struct efi_smbios_record *record,
41-
u8 type, int offset, int recsize)
41+
u8 type, int offset)
4242
{
4343
const u8 *strtable;
4444

0 commit comments

Comments
 (0)