[usb:usb-testing 57/64] drivers/usb/host/xhci-pci.h:13:5: warning: no previous prototype for 'renesas_xhci_check_request_fw'

[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:   df00731cffa0edb454ee0c490696ce0c1745e680
commit: a66d21d7dba84deeaf3b296c43eafc11094b6f09 [57/64] usb: xhci: Add support for Renesas controller with memory
config: m68k-randconfig-r012-20200519 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.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 a66d21d7dba84deeaf3b296c43eafc11094b6f09
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

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

All warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from arch/m68k/include/asm/irqflags.h:6,
from include/linux/irqflags.h:16,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/mutex.h:18,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/usb/host/xhci-pci.c:11:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
|                                                 ^~
include/asm-generic/bug.h:139:27: note: in definition of macro 'WARN_ON_ONCE'
139 |  int __ret_warn_once = !!(condition);            |                           ^~~~~~~~~
arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro 'virt_addr_valid'
170 | #define pfn_valid(pfn)  virt_addr_valid(pfn_to_virt(pfn))
|                         ^~~~~~~~~~~~~~~
include/linux/dma-mapping.h:352:19: note: in expansion of macro 'pfn_valid'
352 |  if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
|                   ^~~~~~~~~
In file included from drivers/usb/host/xhci-pci.c:18:
drivers/usb/host/xhci-pci.h: At top level:
>> drivers/usb/host/xhci-pci.h:13:5: warning: no previous prototype for 'renesas_xhci_check_request_fw' [-Wmissing-prototypes]
13 | int renesas_xhci_check_request_fw(struct pci_dev *dev,
|     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/usb/host/xhci-pci.h:19:6: warning: no previous prototype for 'renesas_xhci_pci_exit' [-Wmissing-prototypes]
19 | void renesas_xhci_pci_exit(struct pci_dev *dev) { };
|      ^~~~~~~~~~~~~~~~~~~~~

vim +/renesas_xhci_check_request_fw +13 drivers/usb/host/xhci-pci.h

8bd5741e3145e4 Christian Lamparter 2020-05-14  11  
8bd5741e3145e4 Christian Lamparter 2020-05-14  12  #else
8bd5741e3145e4 Christian Lamparter 2020-05-14 @13  int renesas_xhci_check_request_fw(struct pci_dev *dev,
8bd5741e3145e4 Christian Lamparter 2020-05-14  14  				  const struct pci_device_id *id)
8bd5741e3145e4 Christian Lamparter 2020-05-14  15  {
8bd5741e3145e4 Christian Lamparter 2020-05-14  16  	return 0;
8bd5741e3145e4 Christian Lamparter 2020-05-14  17  }
8bd5741e3145e4 Christian Lamparter 2020-05-14  18  
8bd5741e3145e4 Christian Lamparter 2020-05-14 @19  void renesas_xhci_pci_exit(struct pci_dev *dev) { };
8bd5741e3145e4 Christian Lamparter 2020-05-14  20  

:::::: The code at line 13 was first introduced by commit
:::::: 8bd5741e3145e40c1e4f422fa5f1b9d7fe0644b3 usb: renesas-xhci: Add the renesas xhci driver

:::::: TO: Christian Lamparter <chunkeey@xxxxxxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
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 Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux