All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [mtd:mtd/fixes 1/8] 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'?
Date: Mon, 10 May 2021 22:35:07 +0800	[thread overview]
Message-ID: <202105102200.nbCuc4Lk-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2040 bytes --]

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=4476397eda3ba791b7896e60b5cbaa022f41728b
        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@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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34082 bytes --]

                 reply	other threads:[~2021-05-10 14:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202105102200.nbCuc4Lk-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.