Subject: Re: panel-ilitek-ili9882t.c:95:16: error: initializer overrides prior initialization

From: Nathan Chancellor <[email-masked]>
Date: Wed, 21 Jan 2026 11:28:00 -0700

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/20[email-masked]/

for this, it just needs verification and application.

Cheers,
Nathan