15a207
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
15a207
From: Michael Marineau <michael.marineau@coreos.com>
15a207
Date: Sun, 21 Aug 2016 18:24:58 -0700
15a207
Subject: [PATCH] tpm: fix warnings when compiling for platforms other than pc
15a207
 and efi
15a207
15a207
---
15a207
 include/grub/tpm.h | 17 +++++++++++------
15a207
 1 file changed, 11 insertions(+), 6 deletions(-)
15a207
15a207
diff --git a/include/grub/tpm.h b/include/grub/tpm.h
15a207
index ecb2d09ff5d..972a5edc836 100644
15a207
--- a/include/grub/tpm.h
15a207
+++ b/include/grub/tpm.h
15a207
@@ -75,12 +75,17 @@ grub_err_t grub_tpm_execute(PassThroughToTPM_InputParamBlock *inbuf,
15a207
 grub_err_t grub_tpm_log_event(unsigned char *buf, grub_size_t size,
15a207
 			      grub_uint8_t pcr, const char *description);
15a207
 #else
15a207
-static inline grub_err_t grub_tpm_execute(PassThroughToTPM_InputParamBlock *inbuf,
15a207
-					  PassThroughToTPM_OutputParamBlock *outbuf) { return 0; };
15a207
-static inline grub_err_t grub_tpm_log_event(unsigned char *buf,
15a207
-					    grub_size_t size,
15a207
-					    grub_uint8_t pcr,
15a207
-					    const char *description)
15a207
+static inline grub_err_t grub_tpm_execute(
15a207
+	PassThroughToTPM_InputParamBlock *inbuf __attribute__ ((unused)),
15a207
+	PassThroughToTPM_OutputParamBlock *outbuf __attribute__ ((unused)))
15a207
+{
15a207
+	return 0;
15a207
+};
15a207
+static inline grub_err_t grub_tpm_log_event(
15a207
+	unsigned char *buf __attribute__ ((unused)),
15a207
+	grub_size_t size __attribute__ ((unused)),
15a207
+	grub_uint8_t pcr __attribute__ ((unused)),
15a207
+	const char *description __attribute__ ((unused)))
15a207
 {
15a207
 	return 0;
15a207
 };