linux-efi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers: firmware: efi: fix gcc warning -Wint-conversion
@ 2019-06-15  4:02 Hariprasad Kelam
  2019-06-19  9:55 ` Ard Biesheuvel
  0 siblings, 1 reply; 6+ messages in thread
From: Hariprasad Kelam @ 2019-06-15  4:02 UTC (permalink / raw)
  To: Ard Biesheuvel, linux-efi, linux-kernel

This patch fixes below warning

drivers/firmware/efi/tpm.c:78:38: warning: passing argument 1 of
‘tpm2_calc_event_log_size’ makes pointer from integer without a cast
[-Wint-conversion]

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
---
 drivers/firmware/efi/tpm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/efi/tpm.c b/drivers/firmware/efi/tpm.c
index 74d0cd1..1d3f5ca 100644
--- a/drivers/firmware/efi/tpm.c
+++ b/drivers/firmware/efi/tpm.c
@@ -75,7 +75,7 @@ int __init efi_tpm_eventlog_init(void)
 		goto out;
 	}
 
-	tbl_size = tpm2_calc_event_log_size(efi.tpm_final_log
+	tbl_size = tpm2_calc_event_log_size((void *)efi.tpm_final_log
 					    + sizeof(final_tbl->version)
 					    + sizeof(final_tbl->nr_events),
 					    final_tbl->nr_events,
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-06-24 16:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-15  4:02 [PATCH] drivers: firmware: efi: fix gcc warning -Wint-conversion Hariprasad Kelam
2019-06-19  9:55 ` Ard Biesheuvel
2019-06-19 22:48   ` Matthew Garrett
2019-06-20 21:37     ` Jarkko Sakkinen
2019-06-20 22:00       ` Matthew Garrett
2019-06-24 16:23         ` Jarkko Sakkinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).