Re: [PATCH v1 2/3] EDAC, pnd2: Apply bit macros and helpers where it makes sense
From: kernel test robot
Date: Wed Nov 15 2023 - 15:42:37 EST
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@xxxxxxxxx/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@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311160352.PfYDQfkU-lkp@xxxxxxxxx/
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