Skip to contentSkip to conversation

TPM: fix build with tpm disabled

PATCH In review Juan Quintela 2 participants 2 messages Jun 2, 2015 – Jun 3, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 TPM: fix build with tpm disabled

Failure was included on commit

---
 include/sysemu/tpm.h | 2 ++
 1 file changed, 2 insertions(+)
include/sysemu/tpm.h +2 -0
index c143890..c8afa17 100644
@@ -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