Merge tpm 2020/05/08 v2
This PR submits a fix that changes improperly used 'FALSE' to 'false'.
The following changes since commit c88f1ffc19e38008a1c33ae039482a860aa7418c:
Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2020-05-08 14:29:18 +0100)
are available in the Git repository at:
git://github.com/stefanberger/qemu-tpm.git tags/pull-tpm-2020-05-08-1
for you to fetch changes up to 441adbb4540423c90e4628a3c553e61d38445d73:
hw/tpm: fix usage of bool in tpm-tis.c (2020-05-08 16:40:45 -0400)
----------------------------------------------------------------
Jafar Abdi (1):
hw/tpm: fix usage of bool in tpm-tis.c
hw/tpm/tpm_tis_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.24.1
[PULL v2 1/1] hw/tpm: fix usage of bool in tpm-tis.c
From: Jafar Abdi <[email protected]>
Clean up wrong usage of FALSE and TRUE in places that use "bool" from stdbool.h.
FALSE and TRUE (with capital letters) are the constants defined by glib for being used with the "gboolean" type of glib. But some parts of the code also use TRUE and FALSE for variables that are declared as "bool" (the type from <stdbool.h>).
--- hw/tpm/tpm_tis_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/tpm/tpm_tis_common.c +2 -2
@@ -536,7 +536,7 @@ static void tpm_tis_mmio_write(void *opaque, hwaddr addr,while ((TPM_TIS_IS_VALID_LOCTY (s->active_locty) && locty > s->active_locty) || !TPM_TIS_IS_VALID_LOCTY (s->active_locty)) { -bool higher_seize = FALSE; +bool higher_seize = false;/* already a pending SEIZE ? */ if ((s->loc[locty].access &TPM_TIS_ACCESS_SEIZE )) {
@@ -546,7 +546,7 @@ static void tpm_tis_mmio_write(void *opaque, hwaddr addr,/* check for ongoing seize by a higher locality */ for (l = locty +1 ; l <TPM_TIS_NUM_LOCALITIES ; l++) {if ((s->loc[l].access &TPM_TIS_ACCESS_SEIZE )) { - higher_seize = TRUE; + higher_seize = true;break ; } }
Signature · 1 line
2.24.1
Quoted 13 lines · Stefan Berger
This PR submits a fix that changes improperly used 'FALSE' to 'false'.
The following changes since commit
c88f1ffc19e38008a1c33ae039482a860aa7418c:Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2020-05-08 14:29:18 +0100)
are available in the Git repository at:
git://github.com/stefanberger/qemu-tpm.gittags/pull-tpm-2020-05-08-1for you to fetch changes up to
441adbb4540423c90e4628a3c553e61d38445d73:
Quoted 8 lines
hw/tpm: fix usage of bool in
tpm-tis.c(2020-05-08 16:40:45 -0400)----------------------------------------------------------------
Jafar Abdi (1):
hw/tpm: fix usage of bool intpm-tis.chw/tpm/tpm_tis_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Hi; the commit in this pull request is missing your signed-off-by as the submaintainer; could you fix that and resend it, please?
thanks
-- PMM