[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq135teziu4.fsf@ca-mkp.ca.oracle.com>
Date: Fri, 18 Jun 2021 22:31:05 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Nathan Chancellor <nathan@...nel.org>
Cc: James Smart <james.smart@...adcom.com>,
Ram Vegesna <ram.vegesna@...adcom.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Nick Desaulniers <ndesaulniers@...gle.com>,
linux-scsi@...r.kernel.org, target-devel@...r.kernel.org,
linux-kernel@...r.kernel.org, clang-built-linux@...glegroups.com
Subject: Re: [PATCH] scsi: elx: efct: Do not use id uninitialized in
efct_lio_setup_session()
Nathan,
> clang warns:
>
> drivers/scsi/elx/efct/efct_lio.c:1216:24: warning: variable 'id' is
> uninitialized when used here [-Wuninitialized]
> se_sess, node, id);
> ^~
>
> Shuffle the debug print after id's initialization so that the actual
> value is printed.
Applied to 5.14/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists