Commit d6ba4521 authored by Mimi Zohar's avatar Mimi Zohar Committed by James Morris
Browse files

tpm add default function definitions



Add default tpm_pcr_read/extend function definitions required
by IMA/Kconfig changes.
Signed-off-by: default avatarMimi Zohar <zohar@us.ibm.com>
Reviewed-by: default avatarEric Paris <eparis@redhat.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 6c21a7fb
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment