diff options
| author | 2020-05-05 10:27:18 +0200 | |
|---|---|---|
| committer | 2020-05-05 10:27:18 +0200 | |
| commit | 0b8d9fc9953fde4ea3eb3191d986ca2d01eb783c (patch) | |
| tree | adf26dface72e496c89289ad159de812afa79167 /drivers/firmware/efi/libstub/efistub.h | |
| parent | efi/libstub/x86: Work around LLVM ELF quirk build regression (diff) | |
| download | linux-dev-0b8d9fc9953fde4ea3eb3191d986ca2d01eb783c.tar.xz linux-dev-0b8d9fc9953fde4ea3eb3191d986ca2d01eb783c.zip | |
efi/libstub: Make efi_printk() input argument const char*
To help the compiler figure out that efi_printk() will not modify
the string it is given, make the input argument type const char*.
While at it, simplify the implementation as well.
Suggested-by: Joe Perches <joe@perches.com>
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/efi/libstub/efistub.h b/drivers/firmware/efi/libstub/efistub.h index 4f10a09563f3..15d0b6f3f6c6 100644 --- a/drivers/firmware/efi/libstub/efistub.h +++ b/drivers/firmware/efi/libstub/efistub.h @@ -625,7 +625,7 @@ efi_status_t check_platform_features(void); void *get_efi_config_table(efi_guid_t guid); -void efi_printk(char *str); +void efi_printk(const char *str); void efi_free(unsigned long size, unsigned long addr); |
