[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202311160352.PfYDQfkU-lkp@intel.com>
Date: Thu, 16 Nov 2023 03:23:49 +0800
From: kernel test robot <lkp@...el.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
linux-edac@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
Tony Luck <tony.luck@...el.com>,
Borislav Petkov <bp@...en8.de>,
James Morse <james.morse@....com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-media@...r.kernel.org, Robert Richter <rric@...nel.org>
Subject: Re: [PATCH v1 2/3] EDAC, pnd2: Apply bit macros and helpers where it
makes sense
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 <lkp@...el.com>
| 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
Powered by blists - more mailing lists