All of lore.kernel.org
 help / color / mirror / Atom feed
* [PULL v3 0/1] Merge tpm 2020/05/08 v3
@ 2020-05-12 15:55 Stefan Berger
  2020-05-12 15:55 ` [PULL v3 1/1] hw/tpm: fix usage of bool in tpm-tis.c Stefan Berger
  2020-05-12 18:27 ` [PULL v3 0/1] Merge tpm 2020/05/08 v3 Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Berger @ 2020-05-12 15:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Stefan Berger

This PR submits a fix that changes improperly used 'FALSE' to 'false'.

   Stefan

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 aadad398e7dc21fe177278498c1be31b8c7d5078:

  hw/tpm: fix usage of bool in tpm-tis.c (2020-05-12 11:47:24 -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(-)
-- 
2.24.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PULL v3 1/1] hw/tpm: fix usage of bool in tpm-tis.c
  2020-05-12 15:55 [PULL v3 0/1] Merge tpm 2020/05/08 v3 Stefan Berger
@ 2020-05-12 15:55 ` Stefan Berger
  2020-05-12 18:27 ` [PULL v3 0/1] Merge tpm 2020/05/08 v3 Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Berger @ 2020-05-12 15:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Thomas Huth, Jafar Abdi, Stefan Berger

From: Jafar Abdi <cafer.abdi@gmail.com>

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>).

Signed-off-by: Jafar Abdi <cafer.abdi@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
---
 hw/tpm/tpm_tis_common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/tpm/tpm_tis_common.c b/hw/tpm/tpm_tis_common.c
index 9ce64d4836..1af4bce139 100644
--- a/hw/tpm/tpm_tis_common.c
+++ b/hw/tpm/tpm_tis_common.c
@@ -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;
                     }
                 }
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PULL v3 0/1] Merge tpm 2020/05/08 v3
  2020-05-12 15:55 [PULL v3 0/1] Merge tpm 2020/05/08 v3 Stefan Berger
  2020-05-12 15:55 ` [PULL v3 1/1] hw/tpm: fix usage of bool in tpm-tis.c Stefan Berger
@ 2020-05-12 18:27 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2020-05-12 18:27 UTC (permalink / raw)
  To: Stefan Berger; +Cc: QEMU Developers

On Tue, 12 May 2020 at 16:55, Stefan Berger <stefanb@linux.vnet.ibm.com> wrote:
>
> This PR submits a fix that changes improperly used 'FALSE' to 'false'.
>
>    Stefan
>
> 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 aadad398e7dc21fe177278498c1be31b8c7d5078:
>
>   hw/tpm: fix usage of bool in tpm-tis.c (2020-05-12 11:47:24 -0400)
>
> ----------------------------------------------------------------
> Jafar Abdi (1):
>       hw/tpm: fix usage of bool in tpm-tis.c


Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/5.1
for any user-visible changes.

-- PMM


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-12 18:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-12 15:55 [PULL v3 0/1] Merge tpm 2020/05/08 v3 Stefan Berger
2020-05-12 15:55 ` [PULL v3 1/1] hw/tpm: fix usage of bool in tpm-tis.c Stefan Berger
2020-05-12 18:27 ` [PULL v3 0/1] Merge tpm 2020/05/08 v3 Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.