All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [miquelraynal:nand/next 15/38] drivers/mtd/sm_ftl.c:222: undefined reference to `ecc_sw_hamming_calculate'
@ 2020-10-28 19:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-28 19:25 UTC (permalink / raw
  To: kbuild-all

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

tree:   https://github.com/miquelraynal/linux-0day.git nand/next
head:   b44e912a80e34026f5f7548e7c76d31cee3b4093
commit: 731717c4e5ac208a3bb6e928d56e05ff12447fd6 [15/38] mtd: nand: ecc-hamming: Rename the exported functions
config: x86_64-randconfig-s021-20201028 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-56-gc09e8239-dirty
        # https://github.com/miquelraynal/linux-0day/commit/731717c4e5ac208a3bb6e928d56e05ff12447fd6
        git remote add miquelraynal https://github.com/miquelraynal/linux-0day.git
        git fetch --no-tags miquelraynal nand/next
        git checkout 731717c4e5ac208a3bb6e928d56e05ff12447fd6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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 >>):

   ld: warning: orphan section `.data..decrypted' from `arch/x86/kernel/cpu/vmware.o' being placed in section `.data..decrypted'
   ld: warning: orphan section `.data..decrypted' from `arch/x86/kernel/kvm.o' being placed in section `.data..decrypted'
   ld: drivers/mtd/sm_ftl.o: in function `sm_correct_sector':
>> drivers/mtd/sm_ftl.c:222: undefined reference to `ecc_sw_hamming_calculate'
>> ld: drivers/mtd/sm_ftl.c:223: undefined reference to `ecc_sw_hamming_correct'
>> ld: drivers/mtd/sm_ftl.c:229: undefined reference to `ecc_sw_hamming_calculate'
   ld: drivers/mtd/sm_ftl.c:230: undefined reference to `ecc_sw_hamming_correct'
   ld: drivers/mtd/sm_ftl.o: in function `sm_write_block':
   drivers/mtd/sm_ftl.c:398: undefined reference to `ecc_sw_hamming_calculate'
   ld: drivers/mtd/sm_ftl.c:402: undefined reference to `ecc_sw_hamming_calculate'

vim +222 drivers/mtd/sm_ftl.c

   216	
   217	static int sm_correct_sector(uint8_t *buffer, struct sm_oob *oob)
   218	{
   219		bool sm_order = IS_ENABLED(CONFIG_MTD_NAND_ECC_SW_HAMMING_SMC);
   220		uint8_t ecc[3];
   221	
 > 222		ecc_sw_hamming_calculate(buffer, SM_SMALL_PAGE, ecc, sm_order);
 > 223		if (ecc_sw_hamming_correct(buffer, ecc, oob->ecc1, SM_SMALL_PAGE,
   224					   sm_order) < 0)
   225			return -EIO;
   226	
   227		buffer += SM_SMALL_PAGE;
   228	
 > 229		ecc_sw_hamming_calculate(buffer, SM_SMALL_PAGE, ecc, sm_order);
   230		if (ecc_sw_hamming_correct(buffer, ecc, oob->ecc2, SM_SMALL_PAGE,
   231					   sm_order) < 0)
   232			return -EIO;
   233		return 0;
   234	}
   235	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-28 19:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-28 19:25 [miquelraynal:nand/next 15/38] drivers/mtd/sm_ftl.c:222: undefined reference to `ecc_sw_hamming_calculate' kernel test robot

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.