From nobody Mon Nov 25 12:34:35 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 952141DF963 for ; Mon, 28 Oct 2024 07:34:55 +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=1730100897; cv=none; b=TK8BQTggajGawOyldHv7mdIx5H8eR8TEK4h1eQNSvfq9vKwQV/cQ54GcC9xSZlcx3b3vvenHgyrN0MqEM4uBgKB9EleiISdQSEtBmhK6bhB/spBEh8CtWIa0Ayi3CHPP3jZkyBr83qWn4C8DBxxZ9Fxu1ZFGQxJihVP0e9YKet4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730100897; c=relaxed/simple; bh=HR7i5HgsvpMEKoCk8cMkJUzpoOTjIdVJsVilamWu4q8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ggpOzldJfUnv8TjaCp29rL8JNLusbsQIfFWuwq/GO7jl5gNumCpXFq05DqNruWatoEBWueoCGojXSOCbb/wgiS2Qc2klkSp85ytws4cmQAWNtw61EiOxZbLyq/JnazkHKiZiJpot6YTKv1C3GM93EfGnE9z5c9qUF1ZSnA8ocA8= 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=YJ6pQjkk; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Inn5sSdh; 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="YJ6pQjkk"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Inn5sSdh" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1730100893; 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=y0YY4YX/eXNm+SsADhJXuP6fTNpj76qLiAdcRLa92EU=; b=YJ6pQjkkuFiOxSYYRaG9f98svzwTptkpr/BnIAHPXPfM5Y07DJTfahR8/vT4yoQYvize18 hZXIFXcCubQuVuTK830Bkdbtbhd6b+Vi6V46G4aoILKcDFj+qVMwJ7NDksIwiScqRJMZro D5X3kXhlv+FrHI/nmsTBQIYE5aNo+s/72pR5HIlVDSZjX647SwjchI37jhAc0hPPDVpcBL 9ensWyblNOlapEVEdLMvmnM4lxcg0YmEYTJRuybEp2vYqbQCgPkbRhXEbotJ0hVUgKh+45 yZFuWElffaop6Gu+tgBqHXdEw3TWtct7Irw8Cr0uj2SPvssaJV9ik6kaExpi3A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1730100893; 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=y0YY4YX/eXNm+SsADhJXuP6fTNpj76qLiAdcRLa92EU=; b=Inn5sSdhIHRBFCZpv3ELJg0AGHM8Fj656N7sHm/u8xXAZw+ho4YBlGQi7SC6+fATezOQyb vFKWpgF1uSVIksAA== To: Anna-Maria Behnsen , Frederic Weisbecker , Thomas Gleixner , Andreas Hindborg , Alice Ryhl , Miguel Ojeda , Kees Cook , linux-kernel@vger.kernel.org Cc: Nam Cao , Jakub Kicinski , Paolo Abeni Subject: [PATCH 23/24] octeontx2-pf: Switch to use hrtimer_setup() Date: Mon, 28 Oct 2024 08:34:36 +0100 Message-Id: <3bf0e5d21365ac965e65374857ff67c465134301.1729865232.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: Jakub Kicinski Cc: Paolo Abeni --- drivers/net/ethernet/marvell/octeontx2/af/ptp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/ptp.c b/drivers/net/= ethernet/marvell/octeontx2/af/ptp.c index bcc96eed2481..66749b3649c1 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/ptp.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/ptp.c @@ -545,8 +545,7 @@ static int ptp_probe(struct pci_dev *pdev, spin_lock_init(&ptp->ptp_lock); if (cn10k_ptp_errata(ptp)) { ptp->read_ptp_tstmp =3D &read_ptp_tstmp_sec_nsec; - hrtimer_init(&ptp->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); - ptp->hrtimer.function =3D ptp_reset_thresh; + hrtimer_setup(&ptp->hrtimer, ptp_reset_thresh, CLOCK_MONOTONIC, HRTIMER_= MODE_REL); } else { ptp->read_ptp_tstmp =3D &read_ptp_tstmp_nsec; } --=20 2.39.5