mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
295f7dcb60
commit
e542b71805
3 changed files with 14 additions and 11 deletions
10
stubs/tpm.c
10
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue