Content-Type: multipart/mixed; boundary="===============3432704683518488782==" MIME-Version: 1.0 From: Andy Shevchenko To: kbuild-all@lists.01.org Subject: Re: [PATCH v2 1/2] serial: 8250_pci: Replace custom pci_match_id() implementation Date: Tue, 26 Oct 2021 16:35:30 +0300 Message-ID: In-Reply-To: List-Id: --===============3432704683518488782== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Tue, Oct 26, 2021 at 04:25:58PM +0300, Andy Shevchenko wrote: > On Tue, Oct 26, 2021 at 08:45:48PM +0800, kernel test robot wrote: > > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross = W=3D1 ARCH=3Di386 > > >> drivers/tty/serial/8250/8250_pci.c:1268:6: warning: variable 'amcc' = is used uninitialized whenever 'if' condition is false [-Wsometimes-uniniti= alized] > > if (match) > > ^~~~~ > > drivers/tty/serial/8250/8250_pci.c:1273:6: note: uninitialized use o= ccurs here > > if (amcc) { > > ^~~~ > > drivers/tty/serial/8250/8250_pci.c:1268:2: note: remove the 'if' if = its condition is always true > > if (match) > > ^~~~~~~~~~ > > drivers/tty/serial/8250/8250_pci.c:1265:11: note: initialize the var= iable 'amcc' to silence this warning > > bool amcc; > > ^ > > =3D 0 > = > Clang gives a right and wrong advice at the same time. > Thank you for the uninitialized case, but variable is boolean, what's 0 h= ere? > = > I'll send a fix ASAP. Hmm... GCC haven't showed anything here. In any case, v3 has just been sent out. -- = With Best Regards, Andy Shevchenko --===============3432704683518488782==--