The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Baran Tuna <barant@fastmail.com>
To: dri-devel@lists.freedesktop.org
Cc: linux-kernel@vger.kernel.org, simona@ffwll.ch, airlied@gmail.com,
	tzimmermann@suse.de, mripard@kernel.org,
	maarten.lankhorst@linux.intel.com,
	Baran Tuna <barant@fastmail.com>,
	Baran Tuna <barantbsd@airmail.cc>
Subject: [PATCH] drm/atomic: Add missing drm_debugfs_info.data initializer
Date: Mon, 29 Jun 2026 04:02:10 +0300	[thread overview]
Message-ID: <20260629010210.513454-1-barant@fastmail.com> (raw)

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


                 reply	other threads:[~2026-06-29  1:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260629010210.513454-1-barant@fastmail.com \
    --to=barant@fastmail.com \
    --cc=airlied@gmail.com \
    --cc=barantbsd@airmail.cc \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox