Skip to content

tpm: Eliminate TPM related code if CONFIG_TPM is not set

Stefan Berger qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v1 RFC3 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- top-down approach for code elimination from arch down to acpi

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4i386: Eliminate all TPM related code if CONFIG_TPM is not sethw/i386/acpi-build.c stubs/tpm.c+20 -40 replies
2/4arm: Eliminate all TPM related code if CONFIG_TPM is not sethw/arm/sysbus-fdt.c hw/arm/virt-acpi-build.c hw/arm/virt.c+12 -00 replies
3/4acpi: Eliminate all TPM related code if CONFIG_TPM is not sethw/acpi/aml-build.c include/hw/acpi/tpm.h+6 -00 replies
4/4sysemu: Make TPM structures inaccessible if CONFIG_TPM is not definedinclude/sysemu/tpm.h include/sysemu/tpm_backend.h+10 -20 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPhilippe Mathieu-Daudé
SeriesR-b T-b
1/4
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] tpm: Eliminate TPM related code if CONFIG_TPM is not set

The following patches entirely eliminate TPM related code if CONFIG_TPM is not set.

Stefan

v2:
- top-down approach for code elimination from arch down to acpi

Stefan Berger (4):
i386: Eliminate all TPM related code if CONFIG_TPM is not set
arm: Eliminate all TPM related code if CONFIG_TPM is not set
acpi: Eliminate all TPM related code if CONFIG_TPM is not set
sysemu: Make TPM structures inaccessible if CONFIG_TPM is not defined

 hw/acpi/aml-build.c          |  2 ++
 hw/arm/sysbus-fdt.c          |  4 ++++
 hw/arm/virt-acpi-build.c     |  6 ++++++
 hw/arm/virt.c                |  2 ++
 hw/i386/acpi-build.c         | 20 ++++++++++++++++++++
 include/hw/acpi/tpm.h        |  4 ++++
 include/sysemu/tpm.h         |  6 +++++-
 include/sysemu/tpm_backend.h |  6 +++++-
 stubs/tpm.c                  |  4 ----
 9 files changed, 48 insertions(+), 6 deletions(-)
Signature · 1 line
2.31.1