From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B13E2C81 for ; Tue, 26 Oct 2021 13:31:17 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10148"; a="227356616" X-IronPort-AV: E=Sophos;i="5.87,184,1631602800"; d="scan'208";a="227356616" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2021 06:26:23 -0700 X-IronPort-AV: E=Sophos;i="5.87,184,1631602800"; d="scan'208";a="596927438" Received: from smile.fi.intel.com ([10.237.72.184]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2021 06:26:19 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1mfMSk-001869-Rn; Tue, 26 Oct 2021 16:25:58 +0300 Date: Tue, 26 Oct 2021 16:25:58 +0300 From: Andy Shevchenko To: kernel test robot Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, kbuild-all@lists.01.org, Greg Kroah-Hartman , Jiri Slaby Subject: Re: [PATCH v2 1/2] serial: 8250_pci: Replace custom pci_match_id() implementation Message-ID: References: <20211025124533.29977-1-andriy.shevchenko@linux.intel.com> <202110262029.9bqOz12y-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202110262029.9bqOz12y-lkp@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Oct 26, 2021 at 08:45:48PM +0800, kernel test robot wrote: > Hi Andy, > > I love your patch! Perhaps something to improve: > > [auto build test WARNING on tty/tty-testing] > [cannot apply to v5.15-rc7 next-20211026] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > > url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/serial-8250_pci-Replace-custom-pci_match_id-implementation/20211025-204752 > base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing > config: i386-randconfig-a003-20211025 (attached as .config) > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project a461fa64bb37cffd73f683c74f6b0780379fc2ca) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://github.com/0day-ci/linux/commit/24a32531ba63f472ec6f40c4d431cb5369b29818 > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Andy-Shevchenko/serial-8250_pci-Replace-custom-pci_match_id-implementation/20211025-204752 > git checkout 24a32531ba63f472ec6f40c4d431cb5369b29818 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > >> drivers/tty/serial/8250/8250_pci.c:1268:6: warning: variable 'amcc' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] > if (match) > ^~~~~ > drivers/tty/serial/8250/8250_pci.c:1273:6: note: uninitialized use occurs 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 variable 'amcc' to silence this warning > bool amcc; > ^ > = 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 here? I'll send a fix ASAP. > 1 warning generated. -- With Best Regards, Andy Shevchenko From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4346699380739408585==" 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:25:58 +0300 Message-ID: In-Reply-To: <202110262029.9bqOz12y-lkp@intel.com> List-Id: --===============4346699380739408585== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Tue, Oct 26, 2021 at 08:45:48PM +0800, kernel test robot wrote: > Hi Andy, > = > I love your patch! Perhaps something to improve: > = > [auto build test WARNING on tty/tty-testing] > [cannot apply to v5.15-rc7 next-20211026] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > = > url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/serial-8= 250_pci-Replace-custom-pci_match_id-implementation/20211025-204752 > base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tt= y-testing > config: i386-randconfig-a003-20211025 (attached as .config) > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project a461= fa64bb37cffd73f683c74f6b0780379fc2ca) > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://github.com/0day-ci/linux/commit/24a32531ba63f472ec6f40c= 4d431cb5369b29818 > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Andy-Shevchenko/serial-8250_pci-= Replace-custom-pci_match_id-implementation/20211025-204752 > git checkout 24a32531ba63f472ec6f40c4d431cb5369b29818 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W= =3D1 ARCH=3Di386 = > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > = > All warnings (new ones prefixed by >>): > = > >> drivers/tty/serial/8250/8250_pci.c:1268:6: warning: variable 'amcc' is= used uninitialized whenever 'if' condition is false [-Wsometimes-uninitial= ized] > if (match) > ^~~~~ > drivers/tty/serial/8250/8250_pci.c:1273:6: note: uninitialized use occ= urs here > if (amcc) { > ^~~~ > drivers/tty/serial/8250/8250_pci.c:1268:2: note: remove the 'if' if it= s condition is always true > if (match) > ^~~~~~~~~~ > drivers/tty/serial/8250/8250_pci.c:1265:11: note: initialize the varia= ble '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 her= e? I'll send a fix ASAP. > 1 warning generated. -- = With Best Regards, Andy Shevchenko --===============4346699380739408585==--