From: Richard Henderson <richard.henderson@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@redhat.com>, qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>, qemu-arm@nongnu.org
Subject: Re: [PATCH v3 3/5] target/arm/cpu: Use ARRAY_SIZE() to iterate over ARMCPUInfo[]
Date: Mon, 4 May 2020 11:08:22 -0700 [thread overview]
Message-ID: <eedbc418-970b-e8ac-576d-7bfc27c4b361@linaro.org> (raw)
In-Reply-To: <20200504172448.9402-4-philmd@redhat.com>
On 5/4/20 10:24 AM, Philippe Mathieu-Daudé wrote:
> + if (cpu_count) {
> + size_t i;
> +
> + for (i = 0; i < cpu_count; ++i) {
> + arm_cpu_register(&arm_cpus[i]);
> + }
> + }
You can use int instead of size_t to avoid the i < 0 type warning.
r~
next prev parent reply other threads:[~2020-05-04 18:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-04 17:24 [PATCH v3 0/5] target/arm: Restrict TCG cpus to TCG accel Philippe Mathieu-Daudé
2020-05-04 17:24 ` [PATCH v3 1/5] target/arm/kvm: Inline set_feature() calls Philippe Mathieu-Daudé
2020-05-04 17:24 ` [PATCH v3 2/5] target/arm: Make set_feature() available for other files Philippe Mathieu-Daudé
2020-05-04 17:24 ` [PATCH v3 3/5] target/arm/cpu: Use ARRAY_SIZE() to iterate over ARMCPUInfo[] Philippe Mathieu-Daudé
2020-05-04 18:08 ` Richard Henderson [this message]
2020-05-04 17:24 ` [PATCH v3 4/5] target/arm/cpu: Restrict v8M IDAU interface to Aarch32 CPUs Philippe Mathieu-Daudé
2020-05-04 18:28 ` Richard Henderson
2020-05-04 17:24 ` [PATCH v3 5/5] target/arm: Restrict TCG cpus to TCG accel Philippe Mathieu-Daudé
2020-05-11 10:48 ` [PATCH v3 0/5] " Peter Maydell
2020-05-11 12:19 ` Philippe Mathieu-Daudé
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=eedbc418-970b-e8ac-576d-7bfc27c4b361@linaro.org \
--to=richard.henderson@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=philmd@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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).