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

Stefan Berger posted 4 patches 2 years, 9 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
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(-)
[PATCH v2 0/4] tpm: Eliminate TPM related code if CONFIG_TPM is not set
Posted by Stefan Berger 2 years, 9 months ago
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(-)

-- 
2.31.1


Re: [PATCH v2 0/4] tpm: Eliminate TPM related code if CONFIG_TPM is not set
Posted by Philippe Mathieu-Daudé 2 years, 9 months ago
On 6/14/21 9:13 PM, Stefan Berger wrote:
> 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(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>