diff options
| author | Ard Biesheuvel <ardb@kernel.org> | 2023-02-28 19:33:14 +0100 |
|---|---|---|
| committer | Ard Biesheuvel <ardb@kernel.org> | 2023-03-18 11:44:57 +0100 |
| commit | f59a7ec1e69fc23946175b8c0d7e0fd21f94f8c9 (patch) | |
| tree | d2738db6fe8082b34d471339bfb3fe14eb37b230 /drivers/firmware/efi/libstub/efistub.h | |
| parent | arm64: efi: Use SMBIOS processor version to key off Ampere quirk (diff) | |
| download | linux-f59a7ec1e69fc23946175b8c0d7e0fd21f94f8c9.tar.gz linux-f59a7ec1e69fc23946175b8c0d7e0fd21f94f8c9.zip | |
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 <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/libstub/efistub.h')
| -rw-r--r-- | drivers/firmware/efi/libstub/efistub.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/firmware/efi/libstub/efistub.h b/drivers/firmware/efi/libstub/efistub.h index 330565b9263a..bd9c38a93bbc 100644 --- a/drivers/firmware/efi/libstub/efistub.h +++ b/drivers/firmware/efi/libstub/efistub.h @@ -1122,14 +1122,13 @@ struct efi_smbios_type4_record { }; #define efi_get_smbios_string(__record, __type, __name) ({ \ - int size = sizeof(struct efi_smbios_type ## __type ## _record); \ int off = offsetof(struct efi_smbios_type ## __type ## _record, \ __name); \ - __efi_get_smbios_string((__record), __type, off, size); \ + __efi_get_smbios_string((__record), __type, off); \ }) const u8 *__efi_get_smbios_string(const struct efi_smbios_record *record, - u8 type, int offset, int recsize); + u8 type, int offset); void efi_remap_image(unsigned long image_base, unsigned alloc_size, unsigned long code_size); |
