From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 6CC3680BFF for ; Mon, 23 Sep 2024 15:27:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727105254; cv=none; b=J3WcA2D5KTtWKLjXhF8O85xgLtKVP3SJ596uwJ7op/uPpmLzT8O1CYA5bW2DBGLKQT7zBhKQw9a3LvYL63Bd3BAstgHZHSyazyrxoQH30XByXkWBOAY7/z8fB9v4iy57pWLsiMRfrouNgeXjPhK13dx5qxCshAskYoHVGohiRxk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727105254; c=relaxed/simple; bh=KiClFLJo1hq5PiFcUwyrPsL4QEeRwRtZGcdNYejv6x0=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=BMcjWc8umB0eD9MljADok/THyVJTvAd8l7BzzKh7+URlvor3EGZD/EmpsCXShfYH/YtndFriac+OEDjXeYui9jHbuaAeoO5GQ5SKzIo/LrtANv2jPSRCJWp1KoEDirQOoJ8u3WFkY7e7XWxmF3KOVvt9ze6Pmc41uZVrca53SSw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=SBnK7wNv; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="SBnK7wNv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727105252; x=1758641252; h=date:from:to:cc:subject:message-id:mime-version; bh=KiClFLJo1hq5PiFcUwyrPsL4QEeRwRtZGcdNYejv6x0=; b=SBnK7wNvRf+a/xRauAgE4/h4Iq+Ox58s6aw2bHABzoYmVIAf6XeVyvrt TscHLurqXvyoPW9atfNKkPNcI2achHoFmiYd02j1dpDKnoMwMiJ18NOKu +4sWUBHdSuCN3hRxWixtC4/qRJue8MpQfdBpe89g5bCfHCeGprTIIz/Tc ZDoxhi2OZMY8uhtR3914/eV5AGZUzi02qPYQ0LhjngcgAAzGC49ssZDmG 3TfiyHTyNLSF6S4UFwCDd4dEQ5XeXmDCLgPEQdJUUWnRJq0SYDGbDEpNP OI8vgRVjltwCij9eRJS526WshxFlqCAPSHQbshSRcMfdO8spZiWvHs51d Q==; X-CSE-ConnectionGUID: jL+Ky0UqQduzHwYHNZ453w== X-CSE-MsgGUID: Kvjow6IuTk2M39HSCgfwMg== X-IronPort-AV: E=McAfee;i="6700,10204,11204"; a="29947006" X-IronPort-AV: E=Sophos;i="6.10,251,1719903600"; d="scan'208";a="29947006" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2024 08:27:31 -0700 X-CSE-ConnectionGUID: dGlRfRnvQ1GQ+8NrU8Pggg== X-CSE-MsgGUID: hX4jl1vjSwWylD6nTNORvw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,251,1719903600"; d="scan'208";a="71371801" Received: from lkp-server01.sh.intel.com (HELO 53e96f405c61) ([10.239.97.150]) by fmviesa010.fm.intel.com with ESMTP; 23 Sep 2024 08:27:30 -0700 Received: from kbuild by 53e96f405c61 with local (Exim 4.96) (envelope-from ) id 1sskyF-000HJm-1P; Mon, 23 Sep 2024 15:27:27 +0000 Date: Mon, 23 Sep 2024 23:27:09 +0800 From: kernel test robot To: oe-kbuild@lists.linux.dev Cc: lkp@intel.com, Dan Carpenter Subject: drivers/of/unittest.c:1195 of_unittest_reg() error: uninitialized symbol 'addr'. Message-ID: <202409232323.2XVmdaVT-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: Frank Rowand CC: Rob Herring CC: Stephen Boyd tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: de5cb0dcb74c294ec527eddfe5094acfdb21ff21 commit: 7b937cc243e5b1df8780a0aa743ce800df6c68d1 of: Create of_root if no dtb provided by firmware date: 7 months ago :::::: branch date: 21 hours ago :::::: commit date: 7 months ago config: sparc-randconfig-r071-20240923 (https://download.01.org/0day-ci/archive/20240923/202409232323.2XVmdaVT-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 14.1.0 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/202409232323.2XVmdaVT-lkp@intel.com/ New smatch warnings: drivers/of/unittest.c:1195 of_unittest_reg() error: uninitialized symbol 'addr'. Old smatch warnings: drivers/of/unittest.c:854 of_unittest_changeset() error: potential null dereference 'n1'. (__of_node_dup returns null) drivers/of/unittest.c:855 of_unittest_changeset() error: potential null dereference 'n2'. (__of_node_dup returns null) drivers/of/unittest.c:856 of_unittest_changeset() error: potential null dereference 'n21'. (__of_node_dup returns null) drivers/of/unittest.c:1007 of_unittest_pci_dma_ranges() warn: iterator 'i' not incremented drivers/of/unittest.c:1283 of_unittest_parse_interrupts() warn: bitwise AND condition is false here drivers/of/unittest.c:1360 of_unittest_parse_interrupts_extended() warn: bitwise AND condition is false here drivers/of/unittest.c:1522 of_unittest_platform_populate() warn: bitwise AND condition is false here drivers/of/unittest.c:3715 of_unittest_overlay_high_level() error: uninitialized symbol 'overlay_base_symbols'. vim +/addr +1195 drivers/of/unittest.c 3d5089c4263d35 Rob Herring 2023-03-28 1179 ff61bacd77f258 Rob Herring 2023-03-28 1180 static void __init of_unittest_reg(void) ff61bacd77f258 Rob Herring 2023-03-28 1181 { ff61bacd77f258 Rob Herring 2023-03-28 1182 struct device_node *np; ff61bacd77f258 Rob Herring 2023-03-28 1183 int ret; ff61bacd77f258 Rob Herring 2023-03-28 1184 u64 addr, size; ff61bacd77f258 Rob Herring 2023-03-28 1185 ff61bacd77f258 Rob Herring 2023-03-28 1186 np = of_find_node_by_path("/testcase-data/address-tests/bus@80000000/device@1000"); ff61bacd77f258 Rob Herring 2023-03-28 1187 if (!np) { ff61bacd77f258 Rob Herring 2023-03-28 1188 pr_err("missing testcase data\n"); ff61bacd77f258 Rob Herring 2023-03-28 1189 return; ff61bacd77f258 Rob Herring 2023-03-28 1190 } ff61bacd77f258 Rob Herring 2023-03-28 1191 ff61bacd77f258 Rob Herring 2023-03-28 1192 ret = of_property_read_reg(np, 0, &addr, &size); ff61bacd77f258 Rob Herring 2023-03-28 1193 unittest(!ret, "of_property_read_reg(%pOF) returned error %d\n", ff61bacd77f258 Rob Herring 2023-03-28 1194 np, ret); ff61bacd77f258 Rob Herring 2023-03-28 @1195 unittest(addr == 0x1000, "of_property_read_reg(%pOF) untranslated address (%llx) incorrect\n", ff61bacd77f258 Rob Herring 2023-03-28 1196 np, addr); ff61bacd77f258 Rob Herring 2023-03-28 1197 ff61bacd77f258 Rob Herring 2023-03-28 1198 of_node_put(np); ff61bacd77f258 Rob Herring 2023-03-28 1199 } ff61bacd77f258 Rob Herring 2023-03-28 1200 :::::: The code at line 1195 was first introduced by commit :::::: ff61bacd77f258bd2ed145efb69e5449b115d4fe of/address: Add of_property_read_reg() helper :::::: TO: Rob Herring :::::: CC: Rob Herring -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki