[linux-next:master 7038/7280] drivers/mtd/nand/raw/orion_nand.c:79:2: error: implicit declaration of function 'readsl'; did you mean

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Miquel,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   95065cb54210eba86bed10cb2118041524d54573
commit: f9681a074422bd5d44cb3bffcd60f8b1612e6f76 [7038/7280] mtd: rawnand: orion: Allow compile testing
config: alpha-allmodconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=f9681a074422bd5d44cb3bffcd60f8b1612e6f76
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout f9681a074422bd5d44cb3bffcd60f8b1612e6f76
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   drivers/mtd/nand/raw/orion_nand.c: In function 'orion_nand_read_buf':
>> drivers/mtd/nand/raw/orion_nand.c:79:2: error: implicit declaration of function 'readsl'; did you mean 'readl'? [-Werror=implicit-function-declaration]
      79 |  readsl(io_base, buf, len/4);
         |  ^~~~~~
         |  readl
   cc1: some warnings being treated as errors

vim +79 drivers/mtd/nand/raw/orion_nand.c

2a1dba2931dc14a drivers/mtd/nand/orion_nand.c     Tzachi Perelstein 2007-10-17  51  
7e534323c416216 drivers/mtd/nand/raw/orion_nand.c Boris Brezillon   2018-09-06  52  static void orion_nand_read_buf(struct nand_chip *chip, uint8_t *buf, int len)
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  53  {
82fc5099744e5f3 drivers/mtd/nand/raw/orion_nand.c Boris Brezillon   2018-09-07  54  	void __iomem *io_base = chip->legacy.IO_ADDR_R;
d166541e9031daf drivers/mtd/nand/raw/orion_nand.c Boris Brezillon   2018-07-18  55  #if defined(__LINUX_ARM_ARCH__) && __LINUX_ARM_ARCH__ >= 5
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  56  	uint64_t *buf64;
55bafbc277dcce7 drivers/mtd/nand/orion_nand.c     Arnd Bergmann     2017-07-21  57  #endif
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  58  	int i = 0;
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  59  
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  60  	while (len && (unsigned long)buf & 7) {
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  61  		*buf++ = readb(io_base);
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  62  		len--;
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  63  	}
d166541e9031daf drivers/mtd/nand/raw/orion_nand.c Boris Brezillon   2018-07-18  64  #if defined(__LINUX_ARM_ARCH__) && __LINUX_ARM_ARCH__ >= 5
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  65  	buf64 = (uint64_t *)buf;
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  66  	while (i < len/8) {
a88a2b886404b1c drivers/mtd/nand/orion_nand.c     Paulius Zaleckas  2010-04-23  67  		/*
a88a2b886404b1c drivers/mtd/nand/orion_nand.c     Paulius Zaleckas  2010-04-23  68  		 * Since GCC has no proper constraint (PR 43518)
a88a2b886404b1c drivers/mtd/nand/orion_nand.c     Paulius Zaleckas  2010-04-23  69  		 * force x variable to r2/r3 registers as ldrd instruction
a88a2b886404b1c drivers/mtd/nand/orion_nand.c     Paulius Zaleckas  2010-04-23  70  		 * requires first register to be even.
a88a2b886404b1c drivers/mtd/nand/orion_nand.c     Paulius Zaleckas  2010-04-23  71  		 */
a88a2b886404b1c drivers/mtd/nand/orion_nand.c     Paulius Zaleckas  2010-04-23  72  		register uint64_t x asm ("r2");
a88a2b886404b1c drivers/mtd/nand/orion_nand.c     Paulius Zaleckas  2010-04-23  73  
94da210af4978b9 drivers/mtd/nand/orion_nand.c     Simon Kagstrom    2009-08-20  74  		asm volatile ("ldrd\t%0, [%1]" : "=&r" (x) : "r" (io_base));
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  75  		buf64[i++] = x;
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  76  	}
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  77  	i *= 8;
55bafbc277dcce7 drivers/mtd/nand/orion_nand.c     Arnd Bergmann     2017-07-21  78  #else
55bafbc277dcce7 drivers/mtd/nand/orion_nand.c     Arnd Bergmann     2017-07-21 @79  	readsl(io_base, buf, len/4);
55bafbc277dcce7 drivers/mtd/nand/orion_nand.c     Arnd Bergmann     2017-07-21  80  	i = len / 4 * 4;
55bafbc277dcce7 drivers/mtd/nand/orion_nand.c     Arnd Bergmann     2017-07-21  81  #endif
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  82  	while (i < len)
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  83  		buf[i++] = readb(io_base);
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  84  }
bfee1a4311702c9 drivers/mtd/nand/orion_nand.c     Nicolas Pitre     2009-05-31  85  

:::::: The code at line 79 was first introduced by commit
:::::: 55bafbc277dcce7aab0ba28563075f3b517e6134 mtd: orion-nand: fix build error with ARMv4

:::::: TO: Arnd Bergmann <arnd@xxxxxxxx>
:::::: CC: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux