public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* panel-ilitek-ili9882t.c:95:16: error: initializer overrides prior initialization
@ 2026-01-21 18:07 Miguel Ojeda
  2026-01-21 18:28 ` Nathan Chancellor
  0 siblings, 1 reply; 2+ messages in thread
From: Miguel Ojeda @ 2026-01-21 18:07 UTC (permalink / raw)
  To: Langyan Ye, Neil Armstrong, Jessica Zhang
  Cc: Mark Brown, dri-devel, Linux-Next Mailing List

Hi,

With LLVM 21.1.8, I am seeing in an `allmodconfig` for next-20260121:

    drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:95:16: error:
initializer overrides prior initialization of this subobject
[-Werror,-Winitializer-overrides]
       95 |         .vbr_enable = 0,
          |                       ^
    drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:90:16: note:
previous initialization is here
       90 |         .vbr_enable = false,
          |                       ^~~~~
    drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:97:19: error:
initializer overrides prior initialization of this subobject
[-Werror,-Winitializer-overrides]
       97 |         .rc_model_size = DSC_RC_MODEL_SIZE_CONST,
          |                          ^~~~~~~~~~~~~~~~~~~~~~~
    ./include/drm/display/drm_dsc.h:22:38: note: expanded from macro
'DSC_RC_MODEL_SIZE_CONST'
       22 | #define DSC_RC_MODEL_SIZE_CONST             8192
          |                                             ^~~~
    drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:91:19: note:
previous initialization is here
       91 |         .rc_model_size = DSC_RC_MODEL_SIZE_CONST,
          |                          ^~~~~~~~~~~~~~~~~~~~~~~
    ./include/drm/display/drm_dsc.h:22:38: note: expanded from macro
'DSC_RC_MODEL_SIZE_CONST'
       22 | #define DSC_RC_MODEL_SIZE_CONST             8192
          |                                             ^~~~
    drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:132:25: error:
initializer overrides prior initialization of this subobject
[-Werror,-Winitializer-overrides]
      132 |         .initial_scale_value = 32,
          |                                ^~
    drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:126:25: note:
previous initialization is here
      126 |         .initial_scale_value = 32,
          |                                ^~
    drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:133:20: error:
initializer overrides prior initialization of this subobject
[-Werror,-Winitializer-overrides]
      133 |         .nfl_bpg_offset = 3511,
          |                           ^~~~
    drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:108:20: note:
previous initialization is here
      108 |         .nfl_bpg_offset = 1402,
          |                           ^~~~

It seems that indeed the variables are duplicated -- something seems
off with commit

    65ce1f5834e9 ("drm/panel: ilitek-ili9882t: Switch Tianma
TL121BVMS07 to DSC 120Hz mode")

Thanks!

Cheers,
Miguel

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

* Re: panel-ilitek-ili9882t.c:95:16: error: initializer overrides prior initialization
  2026-01-21 18:07 panel-ilitek-ili9882t.c:95:16: error: initializer overrides prior initialization Miguel Ojeda
@ 2026-01-21 18:28 ` Nathan Chancellor
  0 siblings, 0 replies; 2+ messages in thread
From: Nathan Chancellor @ 2026-01-21 18:28 UTC (permalink / raw)
  To: Miguel Ojeda
  Cc: Langyan Ye, Neil Armstrong, Jessica Zhang, Mark Brown, dri-devel,
	Linux-Next Mailing List

On Wed, Jan 21, 2026 at 07:07:22PM +0100, Miguel Ojeda wrote:
> Hi,
> 
> With LLVM 21.1.8, I am seeing in an `allmodconfig` for next-20260121:
> 
>     drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:95:16: error:
> initializer overrides prior initialization of this subobject
> [-Werror,-Winitializer-overrides]
>        95 |         .vbr_enable = 0,
>           |                       ^
>     drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:90:16: note:
> previous initialization is here
>        90 |         .vbr_enable = false,
>           |                       ^~~~~
>     drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:97:19: error:
> initializer overrides prior initialization of this subobject
> [-Werror,-Winitializer-overrides]
>        97 |         .rc_model_size = DSC_RC_MODEL_SIZE_CONST,
>           |                          ^~~~~~~~~~~~~~~~~~~~~~~
>     ./include/drm/display/drm_dsc.h:22:38: note: expanded from macro
> 'DSC_RC_MODEL_SIZE_CONST'
>        22 | #define DSC_RC_MODEL_SIZE_CONST             8192
>           |                                             ^~~~
>     drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:91:19: note:
> previous initialization is here
>        91 |         .rc_model_size = DSC_RC_MODEL_SIZE_CONST,
>           |                          ^~~~~~~~~~~~~~~~~~~~~~~
>     ./include/drm/display/drm_dsc.h:22:38: note: expanded from macro
> 'DSC_RC_MODEL_SIZE_CONST'
>        22 | #define DSC_RC_MODEL_SIZE_CONST             8192
>           |                                             ^~~~
>     drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:132:25: error:
> initializer overrides prior initialization of this subobject
> [-Werror,-Winitializer-overrides]
>       132 |         .initial_scale_value = 32,
>           |                                ^~
>     drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:126:25: note:
> previous initialization is here
>       126 |         .initial_scale_value = 32,
>           |                                ^~
>     drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:133:20: error:
> initializer overrides prior initialization of this subobject
> [-Werror,-Winitializer-overrides]
>       133 |         .nfl_bpg_offset = 3511,
>           |                           ^~~~
>     drivers/gpu/drm/panel/panel-ilitek-ili9882t.c:108:20: note:
> previous initialization is here
>       108 |         .nfl_bpg_offset = 1402,
>           |                           ^~~~
> 
> It seems that indeed the variables are duplicated -- something seems
> off with commit
> 
>     65ce1f5834e9 ("drm/panel: ilitek-ili9882t: Switch Tianma
> TL121BVMS07 to DSC 120Hz mode")

I have sent

  https://lore.kernel.org/20260114-panel-ilitek-ili9882t-fix-override-init-v1-1-1d69a2b096df@kernel.org/

for this, it just needs verification and application.

Cheers,
Nathan

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

end of thread, other threads:[~2026-01-21 18:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-21 18:07 panel-ilitek-ili9882t.c:95:16: error: initializer overrides prior initialization Miguel Ojeda
2026-01-21 18:28 ` Nathan Chancellor

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