public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tpm add default function definitions
@ 2009-10-26 13:26 Mimi Zohar
  2009-10-26 13:26 ` [PATCH] ima: remove ACPI dependency Mimi Zohar
  2009-10-26 14:06 ` [PATCH] tpm add default function definitions Rajiv Andrade
  0 siblings, 2 replies; 10+ messages in thread
From: Mimi Zohar @ 2009-10-26 13:26 UTC (permalink / raw)
  To: linux-kernel
  Cc: Mimi Zohar, James Morris, Rajiv Andrade, Jean-Christophe Dubois,
	David Safford, Mimi Zohar, Stable Kernel

Add default tpm_pcr_read/extend function definitions required
by IMA/Kconfig changes.

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Cc: Stable Kernel <stable@kernel.org>
---
 include/linux/tpm.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/include/linux/tpm.h b/include/linux/tpm.h
index 3338b3f..8eaa8f8 100644
--- a/include/linux/tpm.h
+++ b/include/linux/tpm.h
@@ -31,5 +31,12 @@
 
 extern int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf);
 extern int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash);
+#else
+static inline int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf) {
+	return -ENODEV;
+}
+static inline int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash) {
+	return -ENODEV;
+}
 #endif
 #endif
-- 
1.6.0.6


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

end of thread, other threads:[~2009-10-28 18:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-26 13:26 [PATCH] tpm add default function definitions Mimi Zohar
2009-10-26 13:26 ` [PATCH] ima: remove ACPI dependency Mimi Zohar
2009-10-27 13:58   ` Eric Paris
2009-10-27 15:59     ` David Safford
2009-10-27 16:36       ` Eric Paris
2009-10-27 20:42         ` David Safford
2009-10-27 20:56           ` Eric Paris
2009-10-28 18:51             ` Rajiv Andrade
2009-10-26 14:06 ` [PATCH] tpm add default function definitions Rajiv Andrade
2009-10-27 14:08   ` Eric Paris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox