Skip to contentSkip to conversation

linux-next: build warning after merge of the tpmdd tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Jun 11, 2019 – Jun 13, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the tpmdd tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

drivers/firmware/efi/tpm.c: In function 'efi_tpm_eventlog_init':
drivers/firmware/efi/tpm.c:80:10: warning: passing argument 1 of 'tpm2_calc_event_log_size' makes pointer from integer without a cast [-Wint-conversion]
tbl_size = tpm2_calc_event_log_size(efi.tpm_final_log

                                      ~~~~~~~~~~~~~~~~~
          + sizeof(final_tbl->version)
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + sizeof(final_tbl->nr_events),
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/firmware/efi/tpm.c:19:43: note: expected 'void *' but argument is of type 'long unsigned int'
 static int tpm2_calc_event_log_size(void *data, int count, void *size_info)
                                     ~~~~~~^~~~

Introduced by commit

a537b15c54a3 ("tpm: Reserve the TPM final events table")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Matthew, can you provide a fixup for this?

/Jarkko

Quoted 24 lines · Stephen Rothwell

Hi all,

After merging the tpmdd tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

drivers/firmware/efi/tpm.c: In function 'efi_tpm_eventlog_init':
drivers/firmware/efi/tpm.c:80:10: warning: passing argument 1 of 'tpm2_calc_event_log_size' makes pointer from integer without a cast [-Wint-conversion]
tbl_size = tpm2_calc_event_log_size(efi.tpm_final_log

                                      ~~~~~~~~~~~~~~~~~
          + sizeof(final_tbl->version)
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + sizeof(final_tbl->nr_events),
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/firmware/efi/tpm.c:19:43: note: expected 'void *' but argument is of type 'long unsigned int'
 static int tpm2_calc_event_log_size(void *data, int count, void *size_info)
                                     ~~~~~~^~~~

Introduced by commit

a537b15c54a3 ("tpm: Reserve the TPM final events table")

Signature · 2 lines
Cheers,
Stephen Rothwell