From nobody Sat Feb 7 21:24:05 2026 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 705B81DA4E for ; Tue, 24 Dec 2024 07:57:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735027032; cv=none; b=dAhJhGyoVMMXqdm106CX8FjfGGb0a3JkiRCAAWd47hQdZGGM3jFRKTS1W+lorUkyjHKsmmQfKayLgrf0TKddjwlTAiN1AQZn65HSx7pV3jlPMe9dO3VkxoFxVn7Nuf92dar0mtQxZE/9kLED5KOsCNft68sC6zyz7PXJGa6VpfE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735027032; c=relaxed/simple; bh=gWjIcR76emARMGkqzzglhk4NYM4P8+V9j1/3/w3nOOc=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=ViguzvJ2fA2J87tAkylP53C28k3fkcWfYUvhngLLik/80wNz43GFi1MMB6YnwTBobGS6iHjm6aPqDfK/d3cbBk86h3U7bafrDJbGzFes+GQvh3+2ALkRJ72Ctq3Zh+itI5Ou+MCunukiQ8efI+gp1f4kVTD+JKvSOkqIWUXeiEw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=il47GQ7i; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="il47GQ7i" Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5d84179ef26so3975188a12.3 for ; Mon, 23 Dec 2024 23:57:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735027029; x=1735631829; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=KMHf22f47mnupZ5Z5sbHHAzvVBhWDSW7Bp1Wxhnt058=; b=il47GQ7iVNdn7R4njcU65VCvYQpnSFVVSbM8ptu88huHn5dfDbYzUWFy13xDvmq6CP 0K4g0rn7QN8UBRnWR1W4k8vq2CtWQ4lMeHqpZLjySUBFsPjvvBpzKnpQVdTKbTfysw6q iTYSUwpKCtlMKYYEjWqnd+FKYN0nQBN5/aViHl46vwxQiWk2Btj7mS/tZJCdDIT9GYbw Zt4jadnyOgJ7Amd5+FwowrTDPcPbgTzpmMPlo9kADBkere6VXe7B38SRcOPUr2K6BEzu 8someN00cO158C0nQc6edKb79ofZnLkIl6qDXWktjdkdjXMMxIyrbrwcOKVHZlAZMLO8 mQ/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735027029; x=1735631829; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KMHf22f47mnupZ5Z5sbHHAzvVBhWDSW7Bp1Wxhnt058=; b=Uc//RePJGaOwhvQ9bNSjfjl+7tNG6YzoF555iiCbacJf1qysT7BIQSOJ4xiUZh8YlG 1kHDhYoGQ1q3b3S/mQMggeinBV+CSt1QGwlNS7aGW4ZSZl04qwNkJ5OlU+lV+5fZLcI3 qj+uuesI8trX+uW0Let19ljpeaELBJWVjIci6R8VIQ7KbICtBRKV99BtjVyKe4nDRMLq aDXmHqCz0hRHkIiWfZenBTAEX3n0LtO4wgyb4mfnzg/VPUihXSkf2JT67FPQ6GoOOV6s uhG/UbTHvNJrXzt2luNBBTrdty97b74F5vMlZ7prBSxXIZrFRytk2JZgNpgy11iXTq3P ynNg== X-Forwarded-Encrypted: i=1; AJvYcCWgdvppePO0+hT/i9t2NsxC6FYBAVaqBq5cN5IiKffPIbercSCDKAS23tzaNT3BzIr7j1CX541cga56SR4=@vger.kernel.org X-Gm-Message-State: AOJu0YzFHq5b2DdIpsfhWW4g0/XXM770ouyA/l0eBrmSDe73ubpTQXwt UGv8h6Zxg64FlbatYCj09mfeD0im4FobAFAZAdN4x9f2c4JLqIiw X-Gm-Gg: ASbGncv8rGLxlVJ+Um0tT82wwK8l/Mnc/q9SeEAX5H0a8rPwdnVcAItDOM8M6WBE0rV 5maJ1GDPkucxKYf/u1fJiiI27/G9Znm0Kyt5SRu5JsymS9Gh8mYfdsAeLijulem3RYL89XsTB/i Cur3Dzf6YEQ4ieaw8qGwBBjO/5uztzIMRojB+VPHY0maeWIekVQImtZ/pePdwxeUw36ym6JxCpZ jdwp8J0qA6HVX+0wFzmaOQ0I167/0jtF0sEp3vvqhupqQ0QjuHcOvKSIs6UKkKD/EVq2Dc5XoC0 D77Pjg== X-Google-Smtp-Source: AGHT+IF0IsFB1olkgqlPZT89YXr7zJlXoISs3puCJLGzwYjyZTiwq5K2mzmoRf4eNKq8Wooc/NavtA== X-Received: by 2002:a05:6402:26c5:b0:5d1:f009:925e with SMTP id 4fb4d7f45d1cf-5d81ddad8edmr14607338a12.16.1735027028563; Mon, 23 Dec 2024 23:57:08 -0800 (PST) Received: from MBC02GN1V4Q05P ([151.189.136.18]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d806fed752sm6099054a12.54.2024.12.23.23.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Dec 2024 23:57:08 -0800 (PST) Date: Tue, 24 Dec 2024 15:57:03 +0800 From: Richard Clark To: tglx@linutronix.de Cc: anna-maria@linutronix.de, frederic@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] hrtimers: Update the return type of enqueue_hrtimer() Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The return type should be 'bool' instead of 'int' according to the calling = context in the kernel, and its internal implementaion - return timerqueue_add() whi= ch is a bool-return function. Signed-off-by: Richard Clark --- kernel/time/hrtimer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 80fe3749d2db..bda3ffbd444e 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -1067,9 +1067,9 @@ EXPORT_SYMBOL_GPL(hrtimer_forward); * The timer is inserted in expiry order. Insertion into the * red black tree is O(log(n)). Must hold the base lock. * - * Returns 1 when the new timer is the leftmost timer in the tree. + * Returns true when the new timer is the leftmost timer in the tree. */ -static int enqueue_hrtimer(struct hrtimer *timer, +static bool enqueue_hrtimer(struct hrtimer *timer, struct hrtimer_clock_base *base, enum hrtimer_mode mode) { --=20 2.34.1