From: Mimi Zohar Date: Tue, 21 May 2013 14:40:47 +0000 (-0400) Subject: tpm: move TPM_DIGEST_SIZE defintion X-Git-Tag: upstream/snapshot3+hdmi~4792^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c16c9636cad24f0e654f19e8f73ede0c7bd5540;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git tpm: move TPM_DIGEST_SIZE defintion IMA requires access to TPM_DIGEST_SIZE definition. This patch moves the definition to . Signed-off-by: Mimi Zohar Signed-off-by: Kent Yoder --- diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h index 0770d1d..4334232 100644 --- a/drivers/char/tpm/tpm.h +++ b/drivers/char/tpm/tpm.h @@ -272,7 +272,6 @@ typedef union { struct tpm_output_header out; } tpm_cmd_header; -#define TPM_DIGEST_SIZE 20 struct tpm_pcrread_out { u8 pcr_result[TPM_DIGEST_SIZE]; } __packed; diff --git a/include/linux/tpm.h b/include/linux/tpm.h index fcb627f..9a9051b 100644 --- a/include/linux/tpm.h +++ b/include/linux/tpm.h @@ -22,6 +22,8 @@ #ifndef __LINUX_TPM_H__ #define __LINUX_TPM_H__ +#define TPM_DIGEST_SIZE 20 /* Max TPM v1.2 PCR size */ + /* * Chip num is this value or a valid tpm idx */