From: Amit Machhiwal <amachhiw@linux.ibm.com>
To: Chinmay Rath <rathc@linux.ibm.com>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, npiggin@gmail.com,
harshpb@linux.ibm.com, aik@ozlabs.ru, amachhiw@linux.ibm.com
Subject: Re: [PATCH v2] target/ppc: Add lower bound check for watchdogNumber
Date: Tue, 18 Aug 2026 15:23:35 +0530 [thread overview]
Message-ID: <20260818145508.a2e068cb-0d-amachhiw@linux.ibm.com> (raw)
In-Reply-To: <20260818091019.51350-1-rathc@linux.ibm.com>
On 2026/08/18 02:40 PM, Chinmay Rath wrote:
> Add missing lower bound check for H_WATCHDOG H_CALL's watchdogNumber parameter
> as per PAPR documentation ver 12.10.00 section 14.15.5 'H_WATCHDOG'.
>
> Closes : https://gitlab.com/qemu-project/qemu/-/work_items/3600
> Signed-off-by: Chinmay Rath <rathc@linux.ibm.com>
> ---
>
> Changes from v1 : Incorporated changes suggested by Amit.
Thanks for the quick v2 — the helper and the OP_STOP restructuring look
good. One remaining nit below.
> v1 : https://lore.kernel.org/qemu-devel/20260817105854.437724-1-rathc@linux.ibm.com/
>
> hw/watchdog/spapr_watchdog.c | 16 +++++++++++-----
> 1 file changed, 11 insertions(+), 5 deletions(-)
>
> diff --git a/hw/watchdog/spapr_watchdog.c b/hw/watchdog/spapr_watchdog.c
> index 5b3f50de3a..460b4457a6 100644
> --- a/hw/watchdog/spapr_watchdog.c
> +++ b/hw/watchdog/spapr_watchdog.c
> @@ -127,6 +127,12 @@ static void watchdog_expired(void *pw)
> }
> }
>
> +static inline bool watchdogNumber_valid(target_ulong watchdogNumber,
The function name watchdogNumber_valid mixes camelCase with snake_case.
Per the QEMU coding style (docs/devel/style.rst), CamelCase is reserved
for structured type names and typedefs — regular function names follow
lower_case_with_underscores. This should be watchdog_number_valid.
With that fixed:
Reviewed-by: Amit Machhiwal <amachhiw@linux.ibm.com>
Thanks,
Amit
next prev parent reply other threads:[~2026-08-18 9:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-18 9:10 [PATCH v2] target/ppc: Add lower bound check for watchdogNumber Chinmay Rath
2026-08-18 9:53 ` Amit Machhiwal [this message]
2026-08-18 10:53 ` Chinmay Rath
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=20260818145508.a2e068cb-0d-amachhiw@linux.ibm.com \
--to=amachhiw@linux.ibm.com \
--cc=aik@ozlabs.ru \
--cc=harshpb@linux.ibm.com \
--cc=npiggin@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=rathc@linux.ibm.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 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.