mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm/atomic: Add missing drm_debugfs_info.data initializer
@ 2026-06-29  1:02 Baran Tuna
  0 siblings, 0 replies; only message in thread
From: Baran Tuna @ 2026-06-29  1:02 UTC (permalink / raw)
  To: dri-devel
  Cc: linux-kernel, simona, airlied, tzimmermann, mripard,
	maarten.lankhorst, Baran Tuna, Baran Tuna

The drm_atomic_debugfs_list doesn't initialize drm_debugfs_info.
This triggers missing-field-initializers warning when building with W=2.

Initialize the field explicitly with NULL.

Signed-off-by: Baran Tuna <barantbsd@airmail.cc>
---
 drivers/gpu/drm/drm_atomic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index 080aec5a9774..8ca1e21fbf69 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -2132,7 +2132,7 @@ static int drm_state_info(struct seq_file *m, void *data)
 
 /* any use in debugfs files to dump individual planes/crtc/etc? */
 static const struct drm_debugfs_info drm_atomic_debugfs_list[] = {
-	{"state", drm_state_info, 0},
+	{"state", drm_state_info, 0, NULL},
 };
 
 void drm_atomic_debugfs_init(struct drm_device *dev)
-- 
2.54.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-29  1:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-29  1:02 [PATCH] drm/atomic: Add missing drm_debugfs_info.data initializer Baran Tuna

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®