aboutsummaryrefslogtreecommitdiff
path: root/stubs
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.ibm.com>2021-06-15 16:21:20 +0200
committerStefan Berger <stefanb@linux.ibm.com>2021-06-15 10:55:12 -0400
commite542b71805dc4b7827e6c2f00a1170a61843345e (patch)
tree9f6a94e89b180e80e6822f2b410b825b46ff1bf0 /stubs
parent295f7dcb609e02d8902180e48ffa590bea531d7e (diff)
sysemu: Make TPM structures inaccessible if CONFIG_TPM is not defined
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210614191335.1968807-5-stefanb@linux.ibm.com> [PMD: Remove tpm_init() / tpm_cleanup() stubs] Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'stubs')
-rw-r--r--stubs/tpm.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/stubs/tpm.c b/stubs/tpm.c
index 22014595a0..e79bd2a6c2 100644
--- a/stubs/tpm.c
+++ b/stubs/tpm.c
@@ -7,18 +7,8 @@
#include "qemu/osdep.h"
#include "qapi/qapi-commands-tpm.h"
-#include "sysemu/tpm.h"
#include "hw/acpi/tpm.h"
-int tpm_init(void)
-{
- return 0;
-}
-
-void tpm_cleanup(void)
-{
-}
-
TPMInfoList *qmp_query_tpm(Error **errp)
{
return NULL;