Commit 65b7da27 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jyri Sarha

drm/tilcdc: avoid 'make W=2' build failure

The -Wmissing-field-initializer warning when building with W=2
turns into an error because tilcdc is built with -Werror:

drm/tilcdc/tilcdc_drv.c:431:33: error: missing field 'data' initializer [-Werror,-Wmissing-field-initializers] { "regs", tilcdc_regs_show, 0 },
drm/tilcdc/tilcdc_drv.c:432:33: error: missing field 'data' initializer [-Werror,-Wmissing-field-initializers] { "mm",   tilcdc_mm_show,   0 },

Add the missing field initializers to address the warning.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201026194110.3817470-1-arnd@kernel.org
parent 7d18e2f3
...@@ -432,8 +432,8 @@ static int tilcdc_mm_show(struct seq_file *m, void *arg) ...@@ -432,8 +432,8 @@ static int tilcdc_mm_show(struct seq_file *m, void *arg)
} }
static struct drm_info_list tilcdc_debugfs_list[] = { static struct drm_info_list tilcdc_debugfs_list[] = {
{ "regs", tilcdc_regs_show, 0 }, { "regs", tilcdc_regs_show, 0, NULL },
{ "mm", tilcdc_mm_show, 0 }, { "mm", tilcdc_mm_show, 0, NULL },
}; };
static void tilcdc_debugfs_init(struct drm_minor *minor) static void tilcdc_debugfs_init(struct drm_minor *minor)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment