diff options
author | Juan Quintela <quintela@redhat.com> | 2015-06-02 15:47:20 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-06-03 18:19:15 +0200 |
commit | 977ad992f14b29a7d4f18eaba42a705004545a64 (patch) | |
tree | 52fbb8205c34bfd3218cdc6c600e7bd8e4ce5944 /include | |
parent | 6652d0811c9463fbfb2d2d1cb2ec03f388145c5f (diff) |
TPM: fix build with tpm disabled
Failure was included on commit
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/tpm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/tpm.h b/include/sysemu/tpm.h index c1438907de..c8afa179e5 100644 --- a/include/sysemu/tpm.h +++ b/include/sysemu/tpm.h @@ -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; } |