[PATCH 1/4] drm/tilcdc: avoid 'make W=2' build failure

Arnd Bergmann arnd at kernel.org
Tue Oct 27 16:47:25 UTC 2020


On Tue, Oct 27, 2020 at 4:31 PM Jyri Sarha <jsarha at ti.com> wrote:
> On 26/10/2020 21:41, Arnd Bergmann wrote:
> > From: Arnd Bergmann <arnd at arndb.de>
> >
> > 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: Arnd Bergmann <arnd at arndb.de>
>
> Reviewed-by: Jyri Sarha <jsarha at ti.com>

Thanks

> Please let me know if you want me to merge this.

Yes, it would be good if you can merge it directly.

      Arnd


More information about the dri-devel mailing list