From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) (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 E4A4E3BB49; Wed, 15 Nov 2023 19:25:28 +0000 (UTC) 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="VRbCJ7Kz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700076329; x=1731612329; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=McKOscbZvZRsoTCCO+6I+3OL4SrPfiFuJ0fDjAUvUJk=; b=VRbCJ7KzxwC89S2jriUS+RHbikJXtmrptri8YN6LJyE3oU9H6yQ026PU H0e48evWNDdI6SXnXwDMQIoNvF8VQgIbJOS4TrekGR3zAQLHB5ccJ8XUA PXYjuguIcOjJOlnK8tU8yyDxLbgC8HfS3IBam9xPtt+dyTZ8XezG0ViY4 fntXuGwdlHA/GN1AglTux3sJ/N1H3yBAwxNCjgtFfX0NrJcvB2rSOOwpX jISqzNw+jUqlODCbgtZ/+sJYWikjXXsXcJJnslLF+rEH9ezztgq+r3+Bw zocMGXj8vxGfR4kTSBT7OYgW3dB2Uk2B069PdsopQLI37W42x8StwrvVD g==; X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="457434773" X-IronPort-AV: E=Sophos;i="6.03,305,1694761200"; d="scan'208";a="457434773" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2023 11:24:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="831028204" X-IronPort-AV: E=Sophos;i="6.03,305,1694761200"; d="scan'208";a="831028204" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by fmsmga008.fm.intel.com with ESMTP; 15 Nov 2023 11:24:53 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r3LVK-0000kk-2d; Wed, 15 Nov 2023 19:24:50 +0000 Date: Thu, 16 Nov 2023 03:23:49 +0800 From: kernel test robot To: Andy Shevchenko , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Tony Luck , Borislav Petkov , James Morse , Mauro Carvalho Chehab , linux-media@vger.kernel.org, Robert Richter Subject: Re: [PATCH v1 2/3] EDAC, pnd2: Apply bit macros and helpers where it makes sense Message-ID: <202311160352.PfYDQfkU-lkp@intel.com> References: <20231115154940.664664-2-andriy.shevchenko@linux.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: <20231115154940.664664-2-andriy.shevchenko@linux.intel.com> Hi Andy, kernel test robot noticed the following build warnings: [auto build test WARNING on ras/edac-for-next] [also build test WARNING on linus/master v6.7-rc1 next-20231115] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/EDAC-pnd2-Apply-bit-macros-and-helpers-where-it-makes-sense/20231115-235225 base: https://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git edac-for-next patch link: https://lore.kernel.org/r/20231115154940.664664-2-andriy.shevchenko%40linux.intel.com patch subject: [PATCH v1 2/3] EDAC, pnd2: Apply bit macros and helpers where it makes sense config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20231116/202311160352.PfYDQfkU-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231116/202311160352.PfYDQfkU-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202311160352.PfYDQfkU-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/edac/pnd2_edac.c:1069:3: warning: variable 'ret' is uninitialized when used here [-Wuninitialized] ret += check_channel(i); ^~~ drivers/edac/pnd2_edac.c:1065:9: note: initialize the variable 'ret' to silence this warning int ret; ^ = 0 1 warning generated. vim +/ret +1069 drivers/edac/pnd2_edac.c 5c71ad17f97e84d Tony Luck 2017-03-09 1061 5c71ad17f97e84d Tony Luck 2017-03-09 1062 static int apl_check_ecc_active(void) 5c71ad17f97e84d Tony Luck 2017-03-09 1063 { f29c26c5b4c5b02 Andy Shevchenko 2023-11-15 1064 unsigned int i; f29c26c5b4c5b02 Andy Shevchenko 2023-11-15 1065 int ret; 5c71ad17f97e84d Tony Luck 2017-03-09 1066 5c71ad17f97e84d Tony Luck 2017-03-09 1067 /* Check dramtype and ECC mode for each present DIMM */ f29c26c5b4c5b02 Andy Shevchenko 2023-11-15 1068 for_each_set_bit(i, &chan_mask, APL_NUM_CHANNELS) 5c71ad17f97e84d Tony Luck 2017-03-09 @1069 ret += check_channel(i); f29c26c5b4c5b02 Andy Shevchenko 2023-11-15 1070 5c71ad17f97e84d Tony Luck 2017-03-09 1071 return ret ? -EINVAL : 0; 5c71ad17f97e84d Tony Luck 2017-03-09 1072 } 5c71ad17f97e84d Tony Luck 2017-03-09 1073 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki