summaryrefslogtreecommitdiffstats
path: root/stubs
diff options
context:
space:
mode:
authorStefan Berger2021-06-15 16:21:20 +0200
committerStefan Berger2021-06-15 16:55:12 +0200
commite542b71805dc4b7827e6c2f00a1170a61843345e (patch)
tree9f6a94e89b180e80e6822f2b410b825b46ff1bf0 /stubs
parentacpi: Eliminate all TPM related code if CONFIG_TPM is not set (diff)
downloadqemu-e542b71805dc4b7827e6c2f00a1170a61843345e.tar.gz
qemu-e542b71805dc4b7827e6c2f00a1170a61843345e.tar.xz
qemu-e542b71805dc4b7827e6c2f00a1170a61843345e.zip
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;