From e542b71805dc4b7827e6c2f00a1170a61843345e Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Tue, 15 Jun 2021 16:21:20 +0200 Subject: sysemu: Make TPM structures inaccessible if CONFIG_TPM is not defined Signed-off-by: Stefan Berger Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <20210614191335.1968807-5-stefanb@linux.ibm.com> [PMD: Remove tpm_init() / tpm_cleanup() stubs] Signed-off-by: Philippe Mathieu-Daudé --- stubs/tpm.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'stubs') 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; -- cgit v1.2.3-55-g7522