[usb:usb-testing 36/41] drivers/usb/chipidea/../host/ehci.h:743:3: error: implicit declaration of function 'readl_be'; did you mean 'readsb'?

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
head:   4e52af1ccaa2d979894d4d059037ff9ec4d26a83
commit: 88eaaecc44461f9fb147bf7ee6ccc6d4e9fc23e0 [36/41] usb: host: Enable compile testing for some of drivers
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 88eaaecc44461f9fb147bf7ee6ccc6d4e9fc23e0
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=arm 

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

All errors (new ones prefixed by >>):

   In file included from drivers/usb/chipidea/host.c:18:0:
   drivers/usb/chipidea/../host/ehci.h: In function 'ehci_readl':
>> drivers/usb/chipidea/../host/ehci.h:743:3: error: implicit declaration of function 'readl_be'; did you mean 'readsb'? [-Werror=implicit-function-declaration]
      readl_be(regs) :
      ^~~~~~~~
      readsb
   drivers/usb/chipidea/../host/ehci.h: In function 'ehci_writel':
   drivers/usb/chipidea/../host/ehci.h:767:3: error: implicit declaration of function 'writel_be'; did you mean 'writel'? [-Werror=implicit-function-declaration]
      writel_be(val, regs) :
      ^~~~~~~~~
      writel
   cc1: some warnings being treated as errors
--
   In file included from drivers/usb/host/ehci-hcd.c:96:0:
   drivers/usb/host/ehci.h: In function 'ehci_readl':
>> drivers/usb/host/ehci.h:743:3: error: implicit declaration of function 'readl_be'; did you mean 'readsb'? [-Werror=implicit-function-declaration]
      readl_be(regs) :
      ^~~~~~~~
      readsb
   drivers/usb/host/ehci.h: In function 'ehci_writel':
>> drivers/usb/host/ehci.h:767:3: error: implicit declaration of function 'writel_be'; did you mean 'writesb'? [-Werror=implicit-function-declaration]
      writel_be(val, regs) :
      ^~~~~~~~~
      writesb
   cc1: some warnings being treated as errors
--
   In file included from drivers/usb/host/ehci-platform.c:37:0:
   drivers/usb/host/ehci.h: In function 'ehci_readl':
>> drivers/usb/host/ehci.h:743:3: error: implicit declaration of function 'readl_be'; did you mean 'readsb'? [-Werror=implicit-function-declaration]
      readl_be(regs) :
      ^~~~~~~~
      readsb
   drivers/usb/host/ehci.h: In function 'ehci_writel':
>> drivers/usb/host/ehci.h:767:3: error: implicit declaration of function 'writel_be'; did you mean 'writeb'? [-Werror=implicit-function-declaration]
      writel_be(val, regs) :
      ^~~~~~~~~
      writeb
   cc1: some warnings being treated as errors

vim +743 drivers/usb/chipidea/../host/ehci.h

91bc4d31e81b15 Vladimir Barinov       2007-12-30  737  
083522d76662cd Benjamin Herrenschmidt 2006-12-15  738  static inline unsigned int ehci_readl(const struct ehci_hcd *ehci,
083522d76662cd Benjamin Herrenschmidt 2006-12-15  739  		__u32 __iomem *regs)
083522d76662cd Benjamin Herrenschmidt 2006-12-15  740  {
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28  741  #ifdef CONFIG_USB_EHCI_BIG_ENDIAN_MMIO
083522d76662cd Benjamin Herrenschmidt 2006-12-15  742  	return ehci_big_endian_mmio(ehci) ?
68f50e52554a0a Al Viro                2007-02-09 @743  		readl_be(regs) :
68f50e52554a0a Al Viro                2007-02-09  744  		readl(regs);
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28  745  #else
68f50e52554a0a Al Viro                2007-02-09  746  	return readl(regs);
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28  747  #endif
083522d76662cd Benjamin Herrenschmidt 2006-12-15  748  }
083522d76662cd Benjamin Herrenschmidt 2006-12-15  749  

:::::: The code at line 743 was first introduced by commit
:::::: 68f50e52554a0a55dfe2e3fdf659ee0569d73c3f [PATCH] hci_{read,write}l() does force casts to wrong type for no reason

:::::: TO: Al Viro <viro@xxxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux