kernel_optimize_test/drivers/char/tpm/eventlog
Roberto Sassu c8faabfc6f tpm: add _head suffix to tcg_efi_specid_event and tcg_pcr_event2
TCG defines two structures, TCG_EfiSpecIDEventStruct and TCG_PCR_EVENT2,
which contain variable-sized arrays in the middle of the definition.

Since these structures are not suitable for type casting, this patch
removes structure members after the variable-sized arrays and adds the
_head suffix to the structure name, to indicate that the renamed structures
do not contain all fields defined by TCG.

Lastly, given that variable-sized arrays are now in the last position, and
given that the size of the arrays cannot be determined in advance, this
patch also sets the size of those arrays to zero and removes the definition
of TPM2_ACTIVE_PCR_BANKS.

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Nayna Jain <nayna@linux.ibm.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2019-02-13 09:47:01 +02:00
..
acpi.c tpm: Move eventlog declarations to its own header 2018-05-09 14:45:46 +03:00
common.c tpm: Move eventlog declarations to its own header 2018-05-09 14:45:46 +03:00
common.h tpm: Move eventlog declarations to its own header 2018-05-09 14:45:46 +03:00
efi.c tpm: replace kmalloc() + memcpy() with kmemdup() 2018-05-14 13:59:52 +03:00
of.c tpm: replace kmalloc() + memcpy() with kmemdup() 2018-05-14 13:59:43 +03:00
tpm1.c tpm: Fix off-by-one when reading binary_bios_measurements 2019-02-13 09:47:00 +02:00
tpm2.c tpm: add _head suffix to tcg_efi_specid_event and tcg_pcr_event2 2019-02-13 09:47:01 +02:00