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 9A916606A32D for ; Fri, 4 Dec 2026 13:20:25 +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=SfLVztMj Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xZTCc-0002E7-L3; Fri, 04 Dec 2026 08:19:54 -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 1xZTCa-0002DO-Qe for qemu-rust@nongnu.org; Fri, 04 Dec 2026 08:19:52 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xZTCY-0004tZ-0x for qemu-rust@nongnu.org; Fri, 04 Dec 2026 08:19:52 -0500 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-490c3ae81d3so563919f8f.2 for ; Fri, 04 Dec 2026 05:19:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796390388; x=1796995188; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=YpvkdfTJAAEmAG7xI7C5LOceQmabsrgmwkqFMBrriZo=; b=SfLVztMj+bIlX9GbqtyEDZPkkMA+GBWLWfCJ9Tjx9gxn1QqYUdJauk7kOC+5TpCex0 23jEDhP8+qZHa0PAs7jXx/40tsB8geQu3MoQNgjgZZhO3ngs9YOLeUe941t5fH5OYjV6 4Ip5x0fpbfsEM5RNWolbl5S55dIM9QaGWQqt2Dhze1bkaBTrYD3r2kM3P8+Yp/WUB0il qJgTTc9rVrSrA4eFZU8Nq/qH0hSmJlQa0K/KLL0WYEc8ukjGutGKwU3hmyYEPXlwLSNF /mpzra0s9c6cchM99zOyTvD4CuEs3h39lhUXNh6/uQk/FfuWwooFj1CwQJPN/K8vl5qX K+oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796390388; x=1796995188; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=YpvkdfTJAAEmAG7xI7C5LOceQmabsrgmwkqFMBrriZo=; b=sj+e2a4j08PfHlHX2KZj2b4wDviXzUbD6SORSoux9NZlZ9ifLkCG4ghKYe5KT9bjtu qHBY/SxOaluAWXGJsGLZlP1uy+HLLbROJyKEi6Eav6Bs8Evrer35qqkG3RBrg0NEHYcv 7OShtPLVAesnX4iTxc+NopzpgelZxtnhNWtD8W+Ossbh9ricy/v6q6enWMKUBd7iZhDk jF2FwU1aF63fEMh4D2IOs78/rrQSfgisjl9zxeExqDqRhsdZnBhsP4VnF1v6CXGuyRie Wuk7rHE2zuUIsfoRcCqVet/OIEGiSEul0wjjvn7K2utoNln+wmHW/1J84KfTdNsrI00n QgHw== X-Forwarded-Encrypted: i=1; AL+hErEczoQckb7qwBMa3ZCDmyejLO1iHCmWPJNskvF40/s+qgs3gS3IXRQV5TOr+CfTsnMs1w2ILmIJ4EI=@nongnu.org X-Gm-Message-State: AB4q+uEwXuVV4eqQowpgqyt83eNaGCdXL8sl30T0YhmuqlwyFQtl8GYU YX8d2xTKb2k9+asZKEaQPVGWu4pBIZkdWzK1x49ITGTKmIRneMMTf+lPO4fLnDNX++4= X-Gm-Gg: AZFdTZd4FumgnjdIZ15ynEQlb6M11vEEZUCDRfCyCTT3xVXKWWh+hfbReZUgHEtqpo3 al+uLcmxp4UBeeY2osh8wv+XPZKrrZILCphDuXCeUEzv7gP4ypyVAJKpWGY2poxoeGcWovpNXBw bzwE2LPvXmotMOiz1hKY2xajUeBtPZEYhV2+1zSBRAA4ljZEfz9rBi3cH7jeiAIs0s6tCVZZ030 rhpXakowBCAvlhKAfBhJCcmbSdab7d4P3fXjs1I4AiofK0y1p/Me5VNjpk76cy+HT6pxkh/GkPa OfjY71xR732LbVKiRYOvgxyKVEU6cwDeCbliDKA7U8b5IgmROrHsHqmSMQXwcGkMbYGXpg7azb4 fzNaCGckYbsLceCQHznanyzC0HwjXNOpiQBYndurul/QmTbBbqJmUkKNwMnyIs2JCuQo6ggfTeE YP+UyUvvpQqBAt9T+wtpBwFzqKSkdeR+aH5w//jsOY/to+zF8eY04JmXrLo6+yO7zjiOjOLSbkn KB84hAX3I5uQm1i40n/YfG2uPWe62lrlOHY78AB4wX8QvR9260T+08FV9R7vJbCIX3CTWGvhi0L HFsN+XY4twGCB1IdQrnIY+eG6XnWRTZCMBfPgbT/P0RWcVtsKnxk8wn9sw2u8U2eWEzflMbA3Si ZIBdgnVWx9BN04HCNGPVL6jlz45XZtzjsqw== X-Received: by 2002:a05:6000:990:b0:4a6:b87:d77f with SMTP id ffacd0b85a97d-4d1e851d92cmr4133558f8f.12.1796390388571; Fri, 04 Dec 2026 05:19:48 -0800 (PST) Received: from lanath.. (wildly.archaic.org.uk. [81.2.115.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d1738cfb80sm5342097f8f.36.2026.12.04.05.19.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 05:19:48 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Cc: Jason Wang , Stefan Hajnoczi , Fam Zheng , Manos Pitsidianakis , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Samuel Thibault , Paolo Bonzini , Thomas Huth , qemu-rust@nongnu.org Subject: [PATCH 1/6] util/qemu-timer: Make timerlist_run_timers() file local Date: Fri, 4 Dec 2026 13:19:41 +0000 Message-ID: <20261204131946.2175006-2-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261204131946.2175006-1-peter.maydell@linaro.org> References: <20261204131946.2175006-1-peter.maydell@linaro.org> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x429.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=ham 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=-19.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,USER_AGENT_GIT 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 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 --- 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