From: Stefan Berger <stefanb@linux.ibm.com>
To: Stefan Berger <stefanb@linux.vnet.ibm.com>, qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, Thomas Huth <thuth@redhat.com>,
Jafar Abdi <cafer.abdi@gmail.com>
Subject: Re: [PULL v1 1/1] hw/tpm: fix usage of bool in tpm-tis.c
Date: Fri, 8 May 2020 16:34:05 -0400 [thread overview]
Message-ID: <4c87c6ee-a8a1-dc54-221c-e2f76ac5be07@linux.ibm.com> (raw)
In-Reply-To: <20200508200446.1277398-2-stefanb@linux.vnet.ibm.com>
On 5/8/20 4:04 PM, Stefan Berger wrote:
> 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>).
Scratch this one. Wrong author of patch. Need to fix attribution.
>
> Signed-off-by: Jafar Abdi <cafer.abdi@gmail.com>
> Reviewed-by: Thomas Huth <thuth@redhat.com>
> Reviewed-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..5cd4006d2f 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 = false;
> break;
> }
> }
prev parent reply other threads:[~2020-05-08 20:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-08 20:04 [PULL v1 0/1] Merge tpm 2020/05/08 v1 Stefan Berger
2020-05-08 20:04 ` [PULL v1 1/1] hw/tpm: fix usage of bool in tpm-tis.c Stefan Berger
2020-05-08 20:34 ` Stefan Berger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4c87c6ee-a8a1-dc54-221c-e2f76ac5be07@linux.ibm.com \
--to=stefanb@linux.ibm.com \
--cc=cafer.abdi@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanb@linux.vnet.ibm.com \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).