tree:
https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes
head: 0bc731700ec65606803c407901cef999a204fbb7
commit: 4476397eda3ba791b7896e60b5cbaa022f41728b [1/8] mtd: rawnand: cs553x: Fix external
use of SW Hamming ECC helper
config: i386-randconfig-s002-20210510 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
#
https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git/commit/?id=...
git remote add mtd
https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git
git fetch --no-tags mtd mtd/fixes
git checkout 4476397eda3ba791b7896e60b5cbaa022f41728b
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/mtd/nand/raw/cs553x_nand.c: In function 'cs553x_ecc_correct':
> drivers/mtd/nand/raw/cs553x_nand.c:248:9: error: implicit
declaration of function 'ecc_sw_hamming_correct'; did you mean
'rawnand_sw_hamming_correct'? [-Werror=implicit-function-declaration]
248 | return ecc_sw_hamming_correct(buf, read_ecc, calc_ecc,
| ^~~~~~~~~~~~~~~~~~~~~~
| rawnand_sw_hamming_correct
cc1: some warnings being treated as errors
vim +248 drivers/mtd/nand/raw/cs553x_nand.c
242
243 static int cs553x_ecc_correct(struct nand_chip *chip,
244 unsigned char *buf,
245 unsigned char *read_ecc,
246 unsigned char *calc_ecc)
247 {
248 return ecc_sw_hamming_correct(buf, read_ecc, calc_ecc,
249 chip->ecc.size, false);
250 }
251
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org