TPM: fix build with tpm disabled
PATCH 1/1 TPM: fix build with tpm disabled
Failure was included on commit
Signed-off-by Juan Quintela <[email protected]>
--- include/sysemu/tpm.h | 2 ++ 1 file changed, 2 insertions(+)
include/sysemu/tpm.h +2 -0
@@ -32,11 +32,13 @@ TPMVersion tpm_tis_get_tpm_version(Object *obj);static inline TPMVersion tpm_get_version (void ) { +#ifdef CONFIG_TPM Object *obj =object_resolve_path_type ("" ,TYPE_TPM_TIS ,NULL );if (obj) {return tpm_tis_get_tpm_version (obj); } +#endif return TPM_VERSION_UNSPEC ; }
Signature · 1 line
2.4.1
Quoted 3 lines · Juan Quintela
Failure was included on commit
Signed-off-by Juan Quintela <[email protected]>
Tested-by Stefan Berger <[email protected]>