From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDCEAC433EF for ; Tue, 8 Mar 2022 13:16:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4F1488D0002; Tue, 8 Mar 2022 08:16:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4A13B8D0001; Tue, 8 Mar 2022 08:16:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 38F648D0002; Tue, 8 Mar 2022 08:16:29 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id 2761E8D0001 for ; Tue, 8 Mar 2022 08:16:29 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id DA70981F39 for ; Tue, 8 Mar 2022 13:16:28 +0000 (UTC) X-FDA: 79221268056.06.92AE2ED Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by imf14.hostedemail.com (Postfix) with ESMTP id C43E3100010 for ; Tue, 8 Mar 2022 13:16:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646745387; x=1678281387; h=date:from:to:cc:subject:message-id:mime-version; bh=4EtijkSByfPN6vGzVZPpcUjpnUARU+7UdBKvz4mo6dk=; b=Wk9mR9ffUzhXFgQh9HgCxnwqyzcCk5inGmJx/0c5/ri2jmRszlbtc1g8 oYHYGJxsCSCcmQ0Dg222naYZwsvf6g85K48OpLSS39heC/9UXvL0rmBwn ahpL17H1Z9Hc6RVYu8ODmntK839Dj2b71iX7uEpkP4h38xJYrmocjRuMk X6GDx+yASY4jbFTmS4XQpIQBpRt2UJc7n+n9tv0LYVo/UAikaC89eGjNz XiOoRIbsUnaMV0ISNksaVI3WoZUbCBuQPwEwkgTjnQqLWMyBOXwJw0T9I /m3L8BsNbN6ohqxMu3J/mksZ2SiMBT33+fwQ28Z8UWCeISFDkp1of70O6 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10279"; a="254619270" X-IronPort-AV: E=Sophos;i="5.90,164,1643702400"; d="scan'208";a="254619270" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 05:16:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,164,1643702400"; d="scan'208";a="495447092" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 08 Mar 2022 05:16:24 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nRZhP-0001R2-MO; Tue, 08 Mar 2022 13:16:23 +0000 Date: Tue, 8 Mar 2022 21:15:38 +0800 From: kernel test robot To: Jamie Iles Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , Alexandre Belloni Subject: [linux-next:master 10020/11353] drivers/i3c/master.c:2200:3: warning: variable 'i2cdev' is uninitialized when used here Message-ID: <202203082147.hks5e2ec-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: C43E3100010 X-Stat-Signature: q4bn71hozc399zo9ga9pwgffai3ucu5k Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Wk9mR9ff; spf=none (imf14.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.65) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-HE-Tag: 1646745387-726926 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: cb153b68ff91cbc434f3de70ac549e110543e1bb commit: 31b9887c7258ca47d9c665a80f19f006c86756b1 [10020/11353] i3c: remove i2c board info from i2c_dev_desc config: hexagon-randconfig-r041-20220307 (https://download.01.org/0day-ci/archive/20220308/202203082147.hks5e2ec-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=31b9887c7258ca47d9c665a80f19f006c86756b1 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 31b9887c7258ca47d9c665a80f19f006c86756b1 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/i3c/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/i3c/master.c:2200:3: warning: variable 'i2cdev' is uninitialized when used here [-Wuninitialized] i2cdev->dev = i2c_new_client_device(adap, &i2cboardinfo->base); ^~~~~~ drivers/i3c/master.c:2178:29: note: initialize the variable 'i2cdev' to silence this warning struct i2c_dev_desc *i2cdev; ^ = NULL 1 warning generated. vim +/i2cdev +2200 drivers/i3c/master.c 2174 2175 static int i3c_master_i2c_adapter_init(struct i3c_master_controller *master) 2176 { 2177 struct i2c_adapter *adap = i3c_master_to_i2c_adapter(master); 2178 struct i2c_dev_desc *i2cdev; 2179 struct i2c_dev_boardinfo *i2cboardinfo; 2180 int ret; 2181 2182 adap->dev.parent = master->dev.parent; 2183 adap->owner = master->dev.parent->driver->owner; 2184 adap->algo = &i3c_master_i2c_algo; 2185 strncpy(adap->name, dev_name(master->dev.parent), sizeof(adap->name)); 2186 2187 /* FIXME: Should we allow i3c masters to override these values? */ 2188 adap->timeout = 1000; 2189 adap->retries = 3; 2190 2191 ret = i2c_add_adapter(adap); 2192 if (ret) 2193 return ret; 2194 2195 /* 2196 * We silently ignore failures here. The bus should keep working 2197 * correctly even if one or more i2c devices are not registered. 2198 */ 2199 list_for_each_entry(i2cboardinfo, &master->boardinfo.i2c, node) > 2200 i2cdev->dev = i2c_new_client_device(adap, &i2cboardinfo->base); 2201 2202 return 0; 2203 } 2204 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org