lkml.org 
[lkml]   [2023]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH] scsi: ufs: core: initialize sg_cnt, sg_list
Date
> The clang build fails with
> drivers/ufs/core/ufs_bsg.c:107:6: error: variable 'sg_cnt' is used
> uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-
> uninitialized]
> if (dir != DMA_NONE) {
> ^~~~~~~~~~~~~~~
> Similar for sg_list.
>
> This is not an error because ufshcd_advanced_rpmb_req_handler() does a
> similar check, but that check can be reduced if sg_list is initialized to NULL.
> Initialize sg_cnt to silence its error.
>
> Signed-off-by: Tom Rix <trix@redhat.com>
I think that Bean already submitted a fix for that.

Thanks,
Avri

\
 
 \ /
  Last update: 2023-03-26 23:29    [W:0.049 / U:0.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site