From 94bce1b0449b22cf6e56c0918792c5187d1aec7e Mon Sep 17 00:00:00 2001 From: Mimi Zohar Date: Mon, 26 Oct 2009 09:26:18 -0400 Subject: [PATCH] --- yaml --- r: 169160 b: refs/heads/master c: d6ba452128178091dab7a04d54f7e66fdc32fb39 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/tpm.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 29cf8110cf96..5d4cd0631094 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6c21a7fb492bf7e2c4985937082ce58ddeca84bd +refs/heads/master: d6ba452128178091dab7a04d54f7e66fdc32fb39 diff --git a/trunk/include/linux/tpm.h b/trunk/include/linux/tpm.h index 3338b3f5c21a..8eaa8f83effb 100644 --- a/trunk/include/linux/tpm.h +++ b/trunk/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