Re: [PATCH] drm/stm: Avoid using val uninitialized in ltdc_set_ycbcr_config()

2022-02-22 Thread Nathan Chancellor
On Tue, Feb 22, 2022 at 11:54:04AM +0100, Philippe CORNU wrote: > > > On 2/7/22 8:44 PM, Nick Desaulniers wrote: > > On Mon, Feb 7, 2022 at 8:53 AM Nathan Chancellor wrote: > > > > > > Clang warns: > > > > > >drivers/gpu/drm/stm/ltdc.c:625:2: warning: variable 'val' is used > > > uninitia

Re: [PATCH] drm/stm: Avoid using val uninitialized in ltdc_set_ycbcr_config()

2022-02-22 Thread Philippe CORNU
On 2/7/22 8:44 PM, Nick Desaulniers wrote: On Mon, Feb 7, 2022 at 8:53 AM Nathan Chancellor wrote: Clang warns: drivers/gpu/drm/stm/ltdc.c:625:2: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~

Re: [PATCH] drm/stm: Avoid using val uninitialized in ltdc_set_ycbcr_config()

2022-02-08 Thread yannick Fertre
Hi Nathan, Thenks for the patch. Acked-by: Yannick Fertre Best regards On 2/7/22 17:53, Nathan Chancellor wrote: Clang warns: drivers/gpu/drm/stm/ltdc.c:625:2: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default:

Re: [PATCH] drm/stm: Avoid using val uninitialized in ltdc_set_ycbcr_config()

2022-02-08 Thread Raphael Gallais-Pou
Hello Nathan, On 2/7/22 17:53, Nathan Chancellor wrote: > Clang warns: > > drivers/gpu/drm/stm/ltdc.c:625:2: warning: variable 'val' is used > uninitialized whenever switch default is taken [-Wsometimes-uninitialized] > default: > ^~~ > drivers/gpu/drm/stm/ltdc.c:635:

[PATCH] drm/stm: Avoid using val uninitialized in ltdc_set_ycbcr_config()

2022-02-07 Thread Nathan Chancellor
Clang warns: drivers/gpu/drm/stm/ltdc.c:625:2: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~ drivers/gpu/drm/stm/ltdc.c:635:2: note: uninitialized use occurs here val |= LxPCR_YCEN;