mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/etnaviv: etnaviv_fence: Put base class first
@ 2026-10-28 10:31 Philipp Stanner
  2026-10-28 10:31 ` [PATCH 2/2] drm/etnaviv: Remove deprecated fence_ops->release() Philipp Stanner
  2026-10-28 10:34 ` [PATCH 1/2] drm/etnaviv: etnaviv_fence: Put base class first Christian König
  0 siblings, 2 replies; 3+ messages in thread
From: Philipp Stanner @ 2026-10-28 10:31 UTC (permalink / raw)
  To: Lucas Stach, Russell King, Christian Gmeiner, David Airlie,
	Simona Vetter, Sumit Semwal, Christian König
  Cc: etnaviv, dri-devel, linux-kernel, linux-media, Philipp Stanner

struct etnaviv_fence contains a struct dma_fence, which is its base
class. The base class should always be the first member of a class.

This allows for removing a deprecated callback in a subsequent patch.

Make struct dma_fence base the first member of struct etnaviv_fence.

Signed-off-by: Philipp Stanner <phasta@kernel.org>
---
 drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
index 5c23182f4d33..e51a310c8d70 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
@@ -1148,8 +1148,8 @@ int etnaviv_gpu_debugfs(struct etnaviv_gpu *gpu, struct seq_file *m)
 
 /* fence object management */
 struct etnaviv_fence {
-	struct etnaviv_gpu *gpu;
 	struct dma_fence base;
+	struct etnaviv_gpu *gpu;
 };
 
 static inline struct etnaviv_fence *to_etnaviv_fence(struct dma_fence *fence)

base-commit: 731ba09867520c047c7de53f92e384808e0b638e
-- 
2.56.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-28 10:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 10:31 [PATCH 1/2] drm/etnaviv: etnaviv_fence: Put base class first Philipp Stanner
2026-10-28 10:31 ` [PATCH 2/2] drm/etnaviv: Remove deprecated fence_ops->release() Philipp Stanner
2026-10-28 10:34 ` [PATCH 1/2] drm/etnaviv: etnaviv_fence: Put base class first Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®