From nobody Fri Dec 19 08:56:19 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 892D82500DC; Tue, 18 Feb 2025 10:26:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739874405; cv=none; b=UHWXZMC3r6s5jQxd2ZWG+AQNj7XoqaCryYgsinmznCZfJQiIrlJpfmR9Qp+9rwNXqgrTJgKnCNDLmbck7422XpCNs5S4uIldckSHtG1v78386fu3gea3QFxnZOiDYGItDeyCe7qhAa1zdHdHRE05Bgn0GmdTBb/ayH017kvsWKI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739874405; c=relaxed/simple; bh=JMhkV2KjTHwcSa4kVM7/nibeZQCGakkE3y4yA1KaaSI=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=MxoTBQw36FVcybR3sbfIDj9zBCt0v6PCozrvQeuVnrFbgIXozsaR2uh67o+E251p6jqwjqVVAkDSbzm1U77OjF3A9wnhHZNygqirorb/fPb2Hm5ITKaiBIVLn7GGN7BjGidVeOl9usWnD1dRW0h3jKiviw3kJdE64gJ8TMwlXac= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Jwiavnpc; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=pBS8DiYh; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Jwiavnpc"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="pBS8DiYh" Date: Tue, 18 Feb 2025 10:26:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1739874401; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Xz71nM8KStAqPl4ffv/CanQmUQtTxSNtucivjc7KKEk=; b=JwiavnpcnApQ7SXGWRbyECG9RE2mtouvLBx++Jh/hFALmB1SDZxUy+BVoS7QCOd0v3+J65 VSgN+jgaaR2VG+BlCirbwHnNZAObqZdpnjJvOH4iCDnqaIWdQ3cY5gtdt4JGSYhAb5/RnQ dAqZ+O6sMpaAMn4Jy44H36/sS4JuyZ2MalRU3zZngdjTIIZrSqkpYx9qdTEPfbZRol9nN6 yFZ0FbeYjzpuIk9FQ6pZIe5dwniUFFp0s/DqqDtEvNlX9RsHyWdjo8rVZllu+qXHT/vNdg t+oCawyIFA+y0UYQJ9DfhAApjcr22a7mKfnCO56Wrd3Pewz3wtfpyI3+/EAOtA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1739874401; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Xz71nM8KStAqPl4ffv/CanQmUQtTxSNtucivjc7KKEk=; b=pBS8DiYhUFGLs7zrIbXVb05xTCo3jxKcPoE9tJsxQyqeeDzUj6gZXbqeRzCLQxdIGpOcbm NFL3sbr5A8NAPHBw== From: "tip-bot2 for Nam Cao" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/cleanups] serial: sh-sci: Switch to use hrtimer_setup() Cc: Nam Cao , Thomas Gleixner , Zack Rusin , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: =?utf-8?q?=3Cc21664d013015584aebbb6bb8cedd748182cb551=2E17387?= =?utf-8?q?46904=2Egit=2Enamcao=40linutronix=2Ede=3E?= References: =?utf-8?q?=3Cc21664d013015584aebbb6bb8cedd748182cb551=2E173874?= =?utf-8?q?6904=2Egit=2Enamcao=40linutronix=2Ede=3E?= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <173987440137.10177.1436809314131153883.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the timers/cleanups branch of tip: Commit-ID: 4e121496960342f3f2c2c563d65a3c08821ef7d7 Gitweb: https://git.kernel.org/tip/4e121496960342f3f2c2c563d65a3c088= 21ef7d7 Author: Nam Cao AuthorDate: Wed, 05 Feb 2025 11:45:59 +01:00 Committer: Thomas Gleixner CommitterDate: Tue, 18 Feb 2025 11:19:03 +01:00 serial: sh-sci: Switch to use hrtimer_setup() hrtimer_setup() takes the callback function pointer as argument and initializes the timer completely. Replace hrtimer_init() and the open coded initialization of hrtimer::function with the new setup mechanism. Patch was created by using Coccinelle. Signed-off-by: Nam Cao Signed-off-by: Thomas Gleixner Acked-by: Zack Rusin Link: https://lore.kernel.org/all/c21664d013015584aebbb6bb8cedd748182cb551.= 1738746904.git.namcao@linutronix.de --- drivers/tty/serial/sh-sci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index b1ea48f..b72c3bc 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -1702,8 +1702,7 @@ static void sci_request_dma(struct uart_port *port) dma +=3D s->buf_len_rx; } =20 - hrtimer_init(&s->rx_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); - s->rx_timer.function =3D sci_dma_rx_timer_fn; + hrtimer_setup(&s->rx_timer, sci_dma_rx_timer_fn, CLOCK_MONOTONIC, HRTIME= R_MODE_REL); =20 s->chan_rx_saved =3D s->chan_rx =3D chan;