From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5372606A32F for ; Sat, 5 Dec 2026 09:49:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=DwbsxoHR Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xZmOR-0001PX-5R; Sat, 05 Dec 2026 04:49:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xZmOP-0001Ou-Hd for qemu-rust@nongnu.org; Sat, 05 Dec 2026 04:49:21 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xZmON-0003ng-Vh for qemu-rust@nongnu.org; Sat, 05 Dec 2026 04:49:21 -0500 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4a2d6d01ecbso9740835e9.0 for ; Sat, 05 Dec 2026 01:49:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796464157; x=1797068957; darn=nongnu.org; h=content-type:content-transfer-encoding:mime-version:message-id :in-reply-to:references:user-agent:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to:content-type; bh=jJiZnEPkhY7jRbfL4kG3vwsR0673Zx0IiB5exaiP+Ik=; b=DwbsxoHRjFMkjcKdMQR5uGi8o4YjL7eDNAiOCm8AXLRlAk7bjaOw5Qlf8jTKX//2dG QUvEJStVDaxXgDi59jkcSehy85rw2n8PyER+ywrjTrEGRJgJ1zwdFLeMlMjrMz6SjivF +/lxTAsEJR+J6hDRiYoTrrUupNsmqyN1xkb0qVhSgguxKXHwRmmZ8T2/dRXA5rWwX5yf ZSKmmLb6QM7iCVRs2EbvZiQkmI8Vdg9y/UTVMIUcmdeCZHPFD2mWelk3Ykn5D9/t+QKx 9EdCKqplZmr/L4Oyxipjbdqz2vGFj09udMHnVWvfjCbEC2GjdRBPms1QK/GWHcmQHbE3 RLag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796464157; x=1797068957; h=content-type:content-transfer-encoding:mime-version:message-id :in-reply-to:references:user-agent:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=jJiZnEPkhY7jRbfL4kG3vwsR0673Zx0IiB5exaiP+Ik=; b=K+urOUgFeDtAtU9FpEfl+b/CXANvu+Q5vOkrjurjSZB1AdlMcP3WmTZhAyhxH6Q7Z5 VBxsSDDUZEyviN/uVAtJUPX0Nr9mvc6fx2TL3owa0zjaVwaxHpTwtHl7GgVlrlt+eqXK 07Ze79wol2zlhKWOCcUWDf02E/CEn4CrJJYqwaZ42wuBdY1y2iU9oqe2x1hFcdoUOjEF sSQdm4+znHeL9N3T6JmxTjsqfjbEO7Sb1gdCEGnew7lr97+cXBEmJxdH5+Oj42w/cHIO PXSbG6Bm3IJF0duc8nxQqSmc24Kl84uYGqzDzXOJDa3Y5SWziSrU8+J8/lmrbnlnBUNq mGzQ== X-Forwarded-Encrypted: i=1; AL+hErG70IZw3yrblUmwZeoHSZE0AsVzGP5ZRJJ6KMs/RYfihdeEHdtECDEYmTahGWopulwEYSd5PHmdaEI=@nongnu.org X-Gm-Message-State: APuU4Z9CON8NHG5bNqU+Ni8nHcOyp9R+NJZJboD34M+/WscSYY1zebIx B9ubj0du6GDXNXVke5f3654RsvrsfiglQwPKE5cXCIqC3qm+Y63FfhpzmsttO2OgM0k= X-Gm-Gg: AZFdTZfe5j+JqIwqPPAjxLvgshkeYx3XfClEqXvgnaB82wLQKQ9gkt2a9lfbfL3kego VFt3RqXzDcCMYBZ+qwMjWH8YEg9OMEjr1Yyfmsms/RS2bSUCpKfuyr+amjSMI2OBj58WXqQZVRC 0mD60rJ7+95dAG/M2ZCqTtchDnHdeqbmSGqmzTGdAKbJPmDFsDgHF9JJi2JvNTdxiVh0ycFw8gB njWit2QZAwraWSBb6QqqRmVgZA96BY9gY8bLoZN+0fcJP+Rzh+OiKdfoEQRvKhguvynz/d5mL2G bvqD+b0tQoyH4gEwil0+VKEIOxSNAkVdMYYlEwZNxLUb1nbgQoQtEVVuipFuLjRjT1tmNMSK4XC UVoXbKBtTyetB63VV7QQ+I4KKWqV/XQMAvToVfmipjOXmlq/TumFP3FG3v3jb3KrsFpepmgBJA6 gf5fw/KCrSzb33K99TW4CzQS0Q0vLJ8xpFWveJotf6H7/bky1f/l0mWSUNx8yWzLLLF1/hjgCN8 dCWa0xOCn82Y/+SiWoMNyXN/nOmFHV4MgRF59d+9l1+dW+dZ2M3jT1r938ItWXgu3wgzjndXweP 5KjjZD8jVt0fLXKhcLrFyKw0vj1pR6jC+EF5yMzA5LHCfAyn9AJVY/Sj7tMDKUoBBsCsvDCpDTT G/RBfQW8pQos6TOQG5vOVNMPl2niAHmgTzViWAZwcnAFSy+b/66jRhzkD8RsTwp/wdEOiDcl+kN VhhK/5Gj4qvmv4mQgs3y3Sv9X8YvU2zbuJ0wuURQflhOStv+AbyLig98/TGU15VTbFgJLY X-Received: by 2002:a05:600c:4692:b0:4bb:a5e1:7257 with SMTP id 5b1f17b1804b1-4bbeb8d0d50mr81993085e9.33.1796464157032; Sat, 05 Dec 2026 01:49:17 -0800 (PST) Received: from meli-email.org (athedsl-4431069.home.otenet.gr. [79.129.140.205]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbea09a2e7sm120215295e9.2.2026.12.05.01.49.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Dec 2026 01:49:16 -0800 (PST) Date: Sat, 05 Dec 2026 11:48:37 +0200 From: Manos Pitsidianakis To: Peter Maydell , qemu-devel@nongnu.org Cc: Jason Wang , Stefan Hajnoczi , Fam Zheng , Manos Pitsidianakis , Marc-Andr=?UTF-8?B?w6k=?= Lureau , Samuel Thibault , Paolo Bonzini , Thomas Huth , qemu-rust@nongnu.org Subject: Re: [PATCH 1/6] util/qemu-timer: Make timerlist_run_timers() file local User-Agent: meli/0.9.0 References: <20261204131946.2175006-1-peter.maydell@linaro.org> <20261204131946.2175006-2-peter.maydell@linaro.org> In-Reply-To: <20261204131946.2175006-2-peter.maydell@linaro.org> Message-ID: X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8"; format=flowed Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=manos.pitsidianakis@linaro.org; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-rust@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: QEMU Rust-related patches and discussion List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-rust-bounces+qemu-rust=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-16.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Fri, 04 Dec 2026 15:19, Peter Maydell 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 >--- Reviewed-by: Manos Pitsidianakis > 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 >