All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Cc: "Jason Wang" <jasowangio@gmail.com>,
	"Stefan Hajnoczi" <stefanha@redhat.com>,
	"Fam Zheng" <fam@euphon.net>,
	"Manos Pitsidianakis" <manos.pitsidianakis@linaro.org>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Samuel Thibault" <samuel.thibault@ens-lyon.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Thomas Huth" <thuth@redhat.com>,
	qemu-rust@nongnu.org
Subject: Re: [PATCH 1/6] util/qemu-timer: Make timerlist_run_timers() file local
Date: Sat, 05 Dec 2026 11:48:37 +0200	[thread overview]
Message-ID: <tpkgm3.2zs8naqcd4h04@linaro.org> (raw)
In-Reply-To: <20261204131946.2175006-2-peter.maydell@linaro.org>

On Fri, 04 Dec 2026 15:19, Peter Maydell <peter.maydell@linaro.org> wrote:
>The timerlist_run_timers() function is called only from other
>functions in qemu-timer.c, so it doesn't need to be global.  Make it
>file-local instead.
>
>Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
>---

Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>

> include/qemu/timer.h | 10 ----------
> util/qemu-timer.c    | 10 +++++++++-
> 2 files changed, 9 insertions(+), 11 deletions(-)
>
>diff --git a/include/qemu/timer.h b/include/qemu/timer.h
>index 9a62ac8cded..8e7c217306b 100644
>--- a/include/qemu/timer.h
>+++ b/include/qemu/timer.h
>@@ -317,16 +317,6 @@ bool timerlist_expired(QEMUTimerList *timer_list);
>  */
> int64_t timerlist_deadline_ns(QEMUTimerList *timer_list);
> 
>-/**
>- * timerlist_run_timers:
>- * @timer_list: the timer list to use
>- *
>- * Call all expired timers associated with the timer list.
>- *
>- * Returns: true if any timer expired
>- */
>-bool timerlist_run_timers(QEMUTimerList *timer_list);
>-
> /**
>  * timerlist_notify:
>  * @timer_list: the timer list to use
>diff --git a/util/qemu-timer.c b/util/qemu-timer.c
>index d93a020064f..f7920130854 100644
>--- a/util/qemu-timer.c
>+++ b/util/qemu-timer.c
>@@ -515,7 +515,15 @@ bool timer_expired(const QEMUTimer *timer_head, int64_t current_time)
>     return timer_expired_ns(timer_head, current_time * timer_head->scale);
> }
> 
>-bool timerlist_run_timers(QEMUTimerList *timer_list)
>+/**
>+ * timerlist_run_timers:
>+ * @timer_list: the timer list to use
>+ *
>+ * Call all expired timers associated with the timer list.
>+ *
>+ * Returns: true if any timer expired
>+ */
>+static bool timerlist_run_timers(QEMUTimerList *timer_list)
> {
>     QEMUTimer *ts;
>     int64_t current_time;
>-- 
>2.43.0
>


  parent reply	other threads:[~2026-12-05  9:49 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 13:19 [PATCH 0/6] util/qemu-timer: Support reentrancy guard and use in pcnet, hcd-xhci Peter Maydell
2026-12-04 13:19 ` [PATCH 1/6] util/qemu-timer: Make timerlist_run_timers() file local Peter Maydell
2026-12-04 14:51   ` Thomas Huth
2026-12-05  9:48   ` Manos Pitsidianakis [this message]
2026-12-04 13:19 ` [PATCH 2/6] util/qemu-timer: Add optional reentrancy guard to the timer API Peter Maydell
2026-12-04 15:00   ` Thomas Huth
2026-12-04 15:05     ` Peter Maydell
2026-12-04 15:10       ` Thomas Huth
2026-12-04 13:19 ` [PATCH 3/6] util/qemu-timer: Add MemRentrancyGuard to timer_{init, new}_full() Peter Maydell
2026-12-04 15:22   ` [PATCH 3/6] util/qemu-timer: Add MemRentrancyGuard to timer_{init,new}_full() Thomas Huth
2026-12-05  9:51   ` [PATCH 3/6] util/qemu-timer: Add MemRentrancyGuard to timer_{init, new}_full() Manos Pitsidianakis
2026-12-04 13:19 ` [PATCH 4/6] util/qemu_timer: Add timer_new_ns_guarded() Peter Maydell
2026-12-04 15:26   ` Thomas Huth
2026-12-04 15:52     ` Peter Maydell
2026-12-04 13:19 ` [PATCH 5/6] hw/usb/hcd-xhci: Use timer reentrancy-guard API Peter Maydell
2026-12-04 15:28   ` Thomas Huth
2026-12-04 13:19 ` [PATCH 6/6] hw/net/pcnet: Use timer_new_ns_guarded() Peter Maydell
2026-12-04 15:28   ` Thomas Huth
2026-12-05  9:53   ` Manos Pitsidianakis
2026-12-04 15:32 ` [PATCH 0/6] util/qemu-timer: Support reentrancy guard and use in pcnet, hcd-xhci Thomas Huth

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=tpkgm3.2zs8naqcd4h04@linaro.org \
    --to=manos.pitsidianakis@linaro.org \
    --cc=fam@euphon.net \
    --cc=jasowangio@gmail.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-rust@nongnu.org \
    --cc=samuel.thibault@ens-lyon.org \
    --cc=stefanha@redhat.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 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.