lkml.org 
[lkml]   [2018]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 11/17] efi/libstub/tpm: Make function efi_retrieve_tpm2_eventlog_1_2() static
    Date
    From: Wei Yongjun <weiyongjun1@huawei.com>

    Fixes the following sparse warning:

    drivers/firmware/efi/libstub/tpm.c:62:6: warning:
    symbol 'efi_retrieve_tpm2_eventlog_1_2' was not declared. Should it be static?

    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
    Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    ---
    drivers/firmware/efi/libstub/tpm.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/firmware/efi/libstub/tpm.c b/drivers/firmware/efi/libstub/tpm.c
    index 9d08cea3f1b0..caa37a6dd9d4 100644
    --- a/drivers/firmware/efi/libstub/tpm.c
    +++ b/drivers/firmware/efi/libstub/tpm.c
    @@ -59,7 +59,7 @@ void efi_enable_reset_attack_mitigation(efi_system_table_t *sys_table_arg)

    #endif

    -void efi_retrieve_tpm2_eventlog_1_2(efi_system_table_t *sys_table_arg)
    +static void efi_retrieve_tpm2_eventlog_1_2(efi_system_table_t *sys_table_arg)
    {
    efi_guid_t tcg2_guid = EFI_TCG2_PROTOCOL_GUID;
    efi_guid_t linux_eventlog_guid = LINUX_EFI_TPM_EVENT_LOG_GUID;
    --
    2.17.0
    \
     
     \ /
      Last update: 2018-05-04 08:03    [W:5.208 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site