From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) (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 0FD811FDD for ; Tue, 19 Sep 2023 03:11:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695093087; x=1726629087; h=date:from:to:cc:subject:message-id:mime-version; bh=ERwgMwYtZYGu0WlTyFvruFcmEISdJHxBfNBEcf2+HqE=; b=NDzxUZN6ez3RwMdgnqbZbeyFUSb9FZwHhcbaXf8TK1fTbTIyVaWpPOym 5TPuCpuRfVVir3VUe1wx4FfOXlgJ7awmR2L77ZBB+KA/bPUfEKznf7+qg 4daRPRUnRbWDuDs9/d9r8A8rf64qKKvIHLkhColN/Wy8EdN4T+RXl4paC rHkDIHCBJOdorbUEM8br+fjubJWNLH7eXJoxpyzNhDUic57Mh/QVpyLR+ jZdi2rIqqxUcKJO9zJCHYNrzRww+X6/zq50lMLjmg87fPw2xQaCLAbBUQ CcCtVGo8g9fBlPGnQXvI0ATYFSiGZP4QI9EShBYloKCkFwdzDm7l5O507 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="370155778" X-IronPort-AV: E=Sophos;i="6.02,158,1688454000"; d="scan'208";a="370155778" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 20:11:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="695764718" X-IronPort-AV: E=Sophos;i="6.02,158,1688454000"; d="scan'208";a="695764718" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 18 Sep 2023 20:11:20 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qiR8w-0006pS-1d; Tue, 19 Sep 2023 03:11:18 +0000 Date: Tue, 19 Sep 2023 11:10:44 +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: <202309191143.eMtBC0th-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: 2cf0f715623872823a72e451243bbf555d10d032 commit: 015e61f0bffd46600496e50d3b2298f51f6b11a8 i2c: ls2x: Add driver for Loongson-2K/LS7A I2C controller date: 8 months ago :::::: branch date: 8 hours ago :::::: commit date: 8 months ago config: csky-randconfig-r071-20230917 (https://download.01.org/0day-ci/archive/20230919/202309191143.eMtBC0th-lkp@intel.com/config) compiler: csky-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230919/202309191143.eMtBC0th-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/202309191143.eMtBC0th-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