From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) (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 764FE37A for ; Sat, 23 Sep 2023 00:59:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695430783; x=1726966783; h=date:from:to:cc:subject:message-id:mime-version; bh=seeSmgrMWwgJf1ZckrVxDDOlZpgs6TmgjexQXrqIlHk=; b=CF7GYedTkgYK5f/IZxgcwUzXwmK8p2I0Uok7m83XNffrA71F+pBH0Ib8 DUrc3Zw6cfxE3NNI4uyjADWZnbm+28xTb1iMC/H75KkGPMKtDjsMZ1kQP j7G/o8ORESWJkYApfSPBxdH1//TfV3IwD2F2VNNe9CAszR9hOeplYdWwL tH/7zuMuxPjknhuI8CLVf91RRYBCYbs+hCm/X4cOtQ0pkvWTyrapmX/t5 c/2uA2Yd5CY7OGRvrYdgqd7ikAeQvRfbTYH4rme9+ERj4cYEXtEsgmHAc FJyWEik+/MQn8q8saRio1eCWOZdzLJysc2rDD9ZNW2wS9sFZoJXY1O406 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10841"; a="366031502" X-IronPort-AV: E=Sophos;i="6.03,169,1694761200"; d="scan'208";a="366031502" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2023 17:59:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10841"; a="837959949" X-IronPort-AV: E=Sophos;i="6.03,169,1694761200"; d="scan'208";a="837959949" Received: from lkp-server02.sh.intel.com (HELO 493f6c7fed5d) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 22 Sep 2023 17:59:42 -0700 Received: from kbuild by 493f6c7fed5d with local (Exim 4.96) (envelope-from ) id 1qjqzk-0001XV-07; Sat, 23 Sep 2023 00:59:40 +0000 Date: Sat, 23 Sep 2023 08:59:14 +0800 From: kernel test robot To: oe-kbuild@lists.linux.dev Cc: lkp@intel.com, Dan Carpenter Subject: drivers/i2c/busses/i2c-ls2x.c:153 ls2x_i2c_send_byte() error: uninitialized symbol 'rxdata'. Message-ID: <202309230858.vzuVRyFD-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline BCC: lkp@intel.com CC: oe-kbuild-all@lists.linux.dev CC: linux-kernel@vger.kernel.org TO: Binbin Zhou CC: Wolfram Sang CC: Andy Shevchenko tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: d90b0276af8f25a0b8ae081a30d1b2a61263393b commit: 015e61f0bffd46600496e50d3b2298f51f6b11a8 i2c: ls2x: Add driver for Loongson-2K/LS7A I2C controller date: 8 months ago :::::: branch date: 70 minutes ago :::::: commit date: 8 months ago config: csky-randconfig-r071-20230917 (https://download.01.org/0day-ci/archive/20230923/202309230858.vzuVRyFD-lkp@intel.com/config) compiler: csky-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230923/202309230858.vzuVRyFD-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202309230858.vzuVRyFD-lkp@intel.com/ smatch warnings: drivers/i2c/busses/i2c-ls2x.c:153 ls2x_i2c_send_byte() error: uninitialized symbol 'rxdata'. vim +/rxdata +153 drivers/i2c/busses/i2c-ls2x.c 015e61f0bffd46 Binbin Zhou 2023-01-31 143 015e61f0bffd46 Binbin Zhou 2023-01-31 144 static int ls2x_i2c_send_byte(struct ls2x_i2c_priv *priv, u8 txdata) 015e61f0bffd46 Binbin Zhou 2023-01-31 145 { 015e61f0bffd46 Binbin Zhou 2023-01-31 146 int ret; 015e61f0bffd46 Binbin Zhou 2023-01-31 147 u8 rxdata; 015e61f0bffd46 Binbin Zhou 2023-01-31 148 015e61f0bffd46 Binbin Zhou 2023-01-31 149 ret = ls2x_i2c_xfer_byte(priv, txdata, &rxdata); 015e61f0bffd46 Binbin Zhou 2023-01-31 150 if (ret) 015e61f0bffd46 Binbin Zhou 2023-01-31 151 return ret; 015e61f0bffd46 Binbin Zhou 2023-01-31 152 015e61f0bffd46 Binbin Zhou 2023-01-31 @153 if (rxdata & LS2X_SR_AL) 015e61f0bffd46 Binbin Zhou 2023-01-31 154 return -EAGAIN; 015e61f0bffd46 Binbin Zhou 2023-01-31 155 015e61f0bffd46 Binbin Zhou 2023-01-31 156 if (rxdata & LS2X_SR_NOACK) 015e61f0bffd46 Binbin Zhou 2023-01-31 157 return -ENXIO; 015e61f0bffd46 Binbin Zhou 2023-01-31 158 015e61f0bffd46 Binbin Zhou 2023-01-31 159 return 0; 015e61f0bffd46 Binbin Zhou 2023-01-31 160 } 015e61f0bffd46 Binbin Zhou 2023-01-31 161 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki