From nobody Mon Nov 25 13:53:01 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 417E12022D0 for ; Mon, 28 Oct 2024 07:35:49 +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=1730100952; cv=none; b=hSyd7b7m1E3fyYekn4dONVfRc3aNc9VfoHtLmr11O4p/oWUm2l6SUC47aof72bJmcWkfu/8dtDmAiLX4xFXp2E3Pbp6jHS9d1jeR4U9GbSBGAwvqZvdXsZuT4Hye7r0NkTH6H9E5TjGDVw1dDr/H22aeh+Bo7+oBNKsx3b/LKAM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730100952; c=relaxed/simple; bh=7iC6RRwCdYvoSDxFq+nQQAXmQ+GO0wLJI95huJvUd1o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Pv3lEd6Lb/NGlg0W/lnedbTsskc1U13liO2WT3YnYox5EWzKsMlgcafupWGXHlZPBgPIwx2LshSZ4TQHRDN66Ux8X/0pz0RXotRu/uUltR/G0XgiRXuYQnw0STMYxEgdx37s8fQGHjAKDSJKSElg9ytwMhRq/n3OlydTCfUgkt4= 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=oqszeuMK; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=2hCEve9H; 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="oqszeuMK"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="2hCEve9H" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1730100947; 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=0m/zDMXphPDUZpg9M7CeUXorU39VZMKmmy3e7t0Ov7Q=; b=oqszeuMKBYsdoHNxzDX9Av8s0OUKO1yY5zRXtJVPaiJQzyxlE/61Sx0q0ielkd3drxvEMg W5Dt7q4tOeUQUreHD8qTuDEAjDzkEYkXkysLP39PdnDVxQ/b0ecgZdH4KZU3AjS0m9/USs nagz4oWvaEk5rB4wPaZs6bgv6ShYp9qna3QZG92bqP/7c7rlqVcp6Q5QTWz11dXNfQIXWT TVdnahu8pC8xwaKXcxHyKgqpayo6aAsl4KytFE0Pm1TBTKgFCohWft5TWbMNpMhCHT96LV 4I3Kc2UGCs6E/mlHw2jR/oyq0qO1Z+qct0PjLqpX1ncP4b2Px13PYBaL1Bwk8w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1730100947; 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=0m/zDMXphPDUZpg9M7CeUXorU39VZMKmmy3e7t0Ov7Q=; b=2hCEve9HvhsTnsDp/dww051IDuUdJsi3tKhn5NhrySUWx7TZ1+lVLmA4dvQCRYV8tegniS OG2yZonJ2fmhOwDA== To: Anna-Maria Behnsen , Frederic Weisbecker , Thomas Gleixner , Andreas Hindborg , Alice Ryhl , Miguel Ojeda , Kees Cook , linux-kernel@vger.kernel.org Cc: Nam Cao , Zack Rusin Subject: [PATCH 39/44] drm/vmwgfx: Switch to use hrtimer_setup() Date: Mon, 28 Oct 2024 08:35:15 +0100 Message-Id: <318d94dc21f04ba85a29031a8973a4a3b76f3cf2.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. Signed-off-by: Nam Cao --- Cc: Zack Rusin --- drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c b/drivers/gpu/drm/vmwgfx/= vmwgfx_vkms.c index 8651b788e98b..aec774fa4d7b 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c @@ -290,8 +290,8 @@ vmw_vkms_enable_vblank(struct drm_crtc *crtc) =20 drm_calc_timestamping_constants(crtc, &crtc->mode); =20 - hrtimer_init(&du->vkms.timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); - du->vkms.timer.function =3D &vmw_vkms_vblank_simulate; + hrtimer_setup(&du->vkms.timer, &vmw_vkms_vblank_simulate, CLOCK_MONOTONIC, + HRTIMER_MODE_REL); du->vkms.period_ns =3D ktime_set(0, vblank->framedur_ns); hrtimer_start(&du->vkms.timer, du->vkms.period_ns, HRTIMER_MODE_REL); =20 --=20 2.39.5