Blame SOURCES/0138-tpm-fix-warnings-when-compiling-for-platforms-other-.patch

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