From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793878836; b=C7kBDvEN5x9gLQNrF6AFL89VY4PDwMMlgz6sHLIOHzfm/5X1j5mPM+fHArYm3Dbcp3ie XSzgX4snYFmGMMolGA77zdCBNgtK/fIXDKtdYL2dw0fDhuBpA/hOudItTfI+eVUej67GI pIxZ/R/1z3ljHfGiEcTNmtJM40AbpmfVZoe89znoXas0XkWHR/PMAbURMJcI0rDZZwFEL dcY9L8nAC+YPAQDzuEukfSgMZNPdkgpzJZJbM9gnMpCr3vrBEQvVsZhA3m0HxFU1kFT2E PpDIBg7hME8vdSgBfrWSk5KGdf6KtmoIDt1AYYxZpuLE2zqGr1TMfKM8FxhYzs4PjZQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793878836; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=zyIV87KvFE0knJG+E8ltk8/vfmvsVvYdTTr3ey3DQco=; b=zkb4tA+Ci+BjW7oJc8Cjfu2WMWp7+pmcf1wqbCu1Bj6l+7jHU38qJwBVbjPcU5xR0G0n AVPftD2HA8oYLzHXPGsAeaatXkOUUR7Bth5WB8lzJLy/0lG1Un9OxWWFXlFbnGkK6MzMY 5tdfOpwTbT1x2BHQIVSVXbqUVjuUghrgoIqKk41AD5DbE7mZvBzlLmY0kHkfCiE1qq/Z6 LKTlwcCDsou7ZE12r2RJn0w3V0kc0kRTAWewU5DhAsMggK7RcMjbZSVviMyz7Sz8IzHrv 4p9EHOi1vjQTXthJZ1ahqSH6dK1nXCzpyL4q4fv1vB44MjToiO4SaQMV9kfY5FMOMpQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="bIkf/cAU"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F59E606A326; Thu, 5 Nov 2026 11:40:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bIkf/cAU Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CA1E1F00A16; Thu, 5 Nov 2026 11:40:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793878835; bh=zyIV87KvFE0knJG+E8ltk8/vfmvsVvYdTTr3ey3DQco=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=bIkf/cAUayJAST5nxBaDm2r1gDLZk464lMw4yx34u5Ky9D6OvUVzHp+wKK1AOefOm r+kjYHBphMf2uvUL98WgB4Hjtnh8K1yZNSuvrWrFomeLu6ODVYt3zRihR8D2zzIsZ3 btH7balNkjt0D4YAZ7OXuZdZNtagQcAh5ETZREuD8w2gSo2t5NNv4iO1doqusXmt0G juOlg0eYNfvWNEwRoJTozaxT6R/Qc7ZaNeekdRcePShhJ776LtBu8i33C/2ALD2cAa K/bcKWB8ua/vNDzPTLpS1vyW817JgGZl/tSxFF6qrRjVzHdozN88JDmzcAO4sbSI3H v6zAfJyRSPMzg== From: Philipp Stanner To: Min Ma , Lizhi Hou , Oded Gabbay , "Rob Herring (Arm)" , Tomeu Vizoso , Karol Wachowski , Andrzej Kacprowski , Heiko Stuebner , Sumit Semwal , =?UTF-8?q?Christian=20K=C3=B6nig?= , Philipp Stanner , Felix Kuehling , Alex Deucher , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Lucas Stach , Russell King , Christian Gmeiner , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Alessio Belle , Luigi Santivetti , Qiang Yu , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , Lyude Paul , Danilo Krummrich , Boris Brezillon , Steven Price , =?UTF-8?q?Adri=C3=A1n=20Larumbe?= , Liviu Dudau , Dave Airlie , Gerd Hoffmann , Matthew Brost , Natalie Vock , Arun Pravin , Matthew Auld , =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= , Melissa Wen , =?UTF-8?q?Ma=C3=ADra=20Canal?= , Dave Stevenson , Raspberry Pi Kernel Maintenance , Dmitry Osipenko , Gurchetan Singh , Chia-I Wu , Zack Rusin , Broadcom internal kernel review list , Thierry Reding , Mikko Perttunen , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Neill Kapron , Greg Kroah-Hartman , Alice Ryhl , Miguel Ojeda , Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , =?UTF-8?q?Onur=20=C3=96zkan?= , Sunil Khatri , Prike Liang , Vitaly Prosyak , Jesse Zhang , =?UTF-8?q?Timur=20Krist=C3=B3f?= , Srinivasan Shanmugam , David Rosca , Marco Crivellari , Krzysztof Karas , Andi Shyti , Janusz Krzysztofik , Shixiong Ou , =?UTF-8?q?Jouni=20H=C3=B6gander?= , Joel Fernandes , Thadeu Lima de Souza Cascardo , Pierre-Eric Pelloux-Prayer , Al Viro , Michael Bommarito , Sam Day , Gabriel Prostitis Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, amd-gfx@lists.freedesktop.org, etnaviv@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, imagination@lists.freedesktop.org, lima@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, nouveau@lists.freedesktop.org, virtualization@lists.linux.dev, spice-devel@lists.freedesktop.org, intel-xe@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-iio@vger.kernel.org, linux-usb@vger.kernel.org, rust-for-linux@vger.kernel.or Subject: [PATCH 3/3] dma-buf: dma-fence: Remove dma_fence_init64() Date: Thu, 5 Nov 2026 12:35:30 +0100 Message-ID: <20261105113529.1989375-5-phasta@kernel.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261105113529.1989375-2-phasta@kernel.org> References: <20261105113529.1989375-2-phasta@kernel.org> X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit All users of dma_fence_init64() have been removed. They now use the respective initialization flag in dma_fence_init(). Remove dma_fence_init64(). Signed-off-by: Philipp Stanner --- drivers/dma-buf/dma-fence.c | 27 --------------------------- include/linux/dma-fence.h | 2 -- 2 files changed, 29 deletions(-) diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c index a511cf755ee8..da784fd7bdae 100644 --- a/drivers/dma-buf/dma-fence.c +++ b/drivers/dma-buf/dma-fence.c @@ -1138,33 +1138,6 @@ dma_fence_init(struct dma_fence *fence, const struct dma_fence_ops *ops, } EXPORT_SYMBOL(dma_fence_init); -/** - * dma_fence_init64 - Initialize a custom fence with 64-bit seqno support. - * @fence: the fence to initialize - * @ops: the dma_fence_ops for operations on this fence - * @lock: optional irqsafe spinlock to use for locking this fence - * @context: the execution context this fence is run on - * @seqno: a linear increasing sequence number for this context - * - * Initializes an allocated fence, the caller doesn't have to keep its - * refcount after committing with this fence, but it will need to hold a - * refcount again if &dma_fence_ops.enable_signaling gets called. - * - * Context and seqno are used for easy comparison between fences, allowing - * to check which fence is later by simply using dma_fence_later(). - * - * New users MUST NOT use external locks. Check the documentation in - * dma_fence_init() to understand the motives behind the legacy use cases. - */ -void -dma_fence_init64(struct dma_fence *fence, const struct dma_fence_ops *ops, - spinlock_t *lock, u64 context, u64 seqno) -{ - __dma_fence_init(fence, ops, lock, context, seqno, - BIT(DMA_FENCE_FLAG_SEQNO64_BIT)); -} -EXPORT_SYMBOL(dma_fence_init64); - /** * dma_fence_driver_name - Access the driver name * @fence: the fence to query diff --git a/include/linux/dma-fence.h b/include/linux/dma-fence.h index 6f5c245d89ec..56c4e5beaafe 100644 --- a/include/linux/dma-fence.h +++ b/include/linux/dma-fence.h @@ -288,8 +288,6 @@ struct dma_fence_ops { void dma_fence_init(struct dma_fence *fence, const struct dma_fence_ops *ops, spinlock_t *lock, u64 context, u64 seqno, unsigned long flags); -void dma_fence_init64(struct dma_fence *fence, const struct dma_fence_ops *ops, - spinlock_t *lock, u64 context, u64 seqno); void dma_fence_release(struct kref *kref); void dma_fence_free(struct dma_fence *fence); void dma_fence_describe(struct dma_fence *fence, struct seq_file *seq); -- 2.56.0