[xlnx:xlnx_rebase_v5.4 908/1697] drivers/usb/dwc3/core.h:1436:5: warning: no previous prototype for 'dwc3_set_usb_core_power'

kernel test robot lkp at intel.com
Tue Jan 12 15:52:17 EST 2021


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   629150468791671b5fde21363e643e87c5815b17
commit: 68a922ded3cde24cb75c0cad0c62403d97ca9aaf [908/1697] usb: dwc3: Add code for supporting entering into D3 state during suspend
config: m68k-randconfig-r013-20210112 (attached as .config)
compiler: m68k-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://github.com/Xilinx/linux-xlnx/commit/68a922ded3cde24cb75c0cad0c62403d97ca9aaf
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx xlnx_rebase_v5.4
        git checkout 68a922ded3cde24cb75c0cad0c62403d97ca9aaf
        # 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: kernel test robot <lkp at intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/linux/err.h:5,
                    from include/linux/clk.h:12,
                    from drivers/usb/dwc3/core.c:11:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/m68k/include/asm/page_no.h:33:50: warning: ordered comparison of pointer with null pointer [-Wextra]
      33 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
         |                                                  ^~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
     143 |  BUG_ON(!virt_addr_valid(buf));
         |  ^~~~~~
   include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
     143 |  BUG_ON(!virt_addr_valid(buf));
         |          ^~~~~~~~~~~~~~~
   In file included from drivers/usb/dwc3/core.c:36:
   drivers/usb/dwc3/core.h: At top level:
   drivers/usb/dwc3/core.h:1430:6: warning: no previous prototype for 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
    1430 | void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/usb/dwc3/core.h:1432:6: warning: no previous prototype for 'dwc3_set_simple_data' [-Wmissing-prototypes]
    1432 | void dwc3_set_simple_data(struct dwc3 *dwc)
         |      ^~~~~~~~~~~~~~~~~~~~
   drivers/usb/dwc3/core.h:1434:6: warning: no previous prototype for 'dwc3_simple_check_quirks' [-Wmissing-prototypes]
    1434 | void dwc3_simple_check_quirks(struct dwc3 *dwc)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/core.h:1436:5: warning: no previous prototype for 'dwc3_set_usb_core_power' [-Wmissing-prototypes]
    1436 | int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
         |     ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/usb/dwc3/core.h: In function 'dwc3_set_usb_core_power':
>> drivers/usb/dwc3/core.h:1437:1: warning: control reaches end of non-void function [-Wreturn-type]
    1437 | { ; }
         | ^


vim +/dwc3_set_usb_core_power +1436 drivers/usb/dwc3/core.h

  1420	
  1421	#if IS_ENABLED(CONFIG_USB_DWC3_OF_SIMPLE)
  1422	int dwc3_enable_hw_coherency(struct device *dev);
  1423	void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup);
  1424	void dwc3_set_simple_data(struct dwc3 *dwc);
  1425	void dwc3_simple_check_quirks(struct dwc3 *dwc);
  1426	int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on);
  1427	#else
  1428	static inline int dwc3_enable_hw_coherency(struct device *dev)
  1429	{ return 1; }
> 1430	void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
  1431	{ ; }
  1432	void dwc3_set_simple_data(struct dwc3 *dwc)
  1433	{ ; }
> 1434	void dwc3_simple_check_quirks(struct dwc3 *dwc)
  1435	{ ; }
> 1436	int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
> 1437	{ ; }
  1438	#endif
  1439	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 23103 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210113/18b6cebd/attachment-0001.gz>


More information about the linux-arm-kernel mailing list