From nobody Mon Nov 25 12:55:24 2024 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 2A96F1F4264 for ; Mon, 28 Oct 2024 07:35:41 +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=1730100943; cv=none; b=Q7B1r9aG54kcMnCoryUSe8BzxfNmhm0FuOKfo2hQmFyYx1tc1urZGkBFWS5U4GxpCovxK8O/+t7oAWkRYAK+frHPa8/9xEcYUVJf8IU4B99+1Ib6of1TCt2Gt7u2FeDqFoqXm9nH0RsvRk2toPH6+DWBWSsew7eWEigL20KbPpQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730100943; c=relaxed/simple; bh=lEpQxL9xXuQFToIcVd6yy5VJRuxNaTDofAFptwuN6Zo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=NJ/1GGa7tuHSylPerFP4NOs5Axwnmd6PiQ892mNTMrG+LqeOwE8mzU7kKQV3pURPuEc8KrzsGOfioWFl7S4pb7cyIuxgm21VDLQzULAeLqgocKj3iZN/SLD7OPvfnQjkJQ4URykAK87HV4wOvB0rrbLnB2sbU4XlRFHSwEl9Sjg= 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=WUz/V0ti; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=IZ4FYzFN; 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="WUz/V0ti"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="IZ4FYzFN" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1730100939; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ab5B+FqZ3WhkZ6WaAXYb+YI7fVubcn8HVzkt7ibXae4=; b=WUz/V0tiYnaI0K58Zo/cv9WTcRPFZZ1GtFxqaVZMYoMsSqxtek0mHFdrEW4HE6ME3E61HA ncDqSy9DiY1th1FIo5QUKTcLber0N7qnXJKkZA1q0SqEdrLta+KVYkTcPDNu628w4s1vJ/ HqjAKgjSP2sf+2Pn87OfFG3RWQ5pFRcbwDWuTf4hSnBp8fwx/tZjxLXoFBbb0I3c5fsCRi rU+l3I5HoDpyOpK+ab283hjd9jnh2CILuANV5ka/6eyUe/5/L9jNQfVTO27rLeTvrG8h99 ooBXBwZ3vM3KX6vaubkGuEH+cQJt2B6f8Vaz+S2eVaHy/SalqjREENG0e9jaEQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1730100939; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ab5B+FqZ3WhkZ6WaAXYb+YI7fVubcn8HVzkt7ibXae4=; b=IZ4FYzFNXzDXaaEYm6ftTDcL/AV2ys1Kz9wKcUNKgT01cUOAeY90kzx6WFVJa19nyPa7ms YjmbUMve1VLCamDA== To: Anna-Maria Behnsen , Frederic Weisbecker , Thomas Gleixner , Andreas Hindborg , Alice Ryhl , Miguel Ojeda , Kees Cook , linux-kernel@vger.kernel.org Cc: Nam Cao , Jaehoon Chung Subject: [PATCH 20/44] mmc: dw_mmc: Switch to use hrtimer_setup() Date: Mon, 28 Oct 2024 08:34:56 +0100 Message-Id: <36c90360480ab8c4c13f1034393f53e531ca5855.1729865485.git.namcao@linutronix.de> In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" There is a newly introduced hrtimer_setup() which will replace hrtimer_init(). This new function is similar to the old one, except that it also sanity-checks and initializes the timer's callback function. Switch to use this new function. Patch was created by using Coccinelle. Signed-off-by: Nam Cao --- Cc: Jaehoon Chung --- drivers/mmc/host/dw_mmc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 41e451235f63..3a15af97e4e1 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -1875,8 +1875,7 @@ static void dw_mci_init_fault(struct dw_mci *host) { host->fail_data_crc =3D (struct fault_attr) FAULT_ATTR_INITIALIZER; =20 - hrtimer_init(&host->fault_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); - host->fault_timer.function =3D dw_mci_fault_timer; + hrtimer_setup(&host->fault_timer, dw_mci_fault_timer, CLOCK_MONOTONIC, HR= TIMER_MODE_REL); } #else static void dw_mci_init_fault(struct dw_mci *host) --=20 2.39.5