linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [xlnx:xlnx_rebase_v5.4 908/1700] drivers/usb/dwc3/core.h:1436:5: warning: no previous prototype for 'dwc3_set_usb_core_power'
@ 2021-03-02 23:33 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-02 23:33 UTC (permalink / raw)
  To: Piyush Mehta
  Cc: kbuild-all, linux-arm-kernel, Michal Simek, Anurag Kumar Vulisha

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

Hi Piyush,

FYI, the error/warning still remains.

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   49bdb4e70d2001f3a5bf0bf5e990cca4a85210f4
commit: 68a922ded3cde24cb75c0cad0c62403d97ca9aaf [908/1700] usb: dwc3: Add code for supporting entering into D3 state during suspend
config: c6x-randconfig-r006-20210303 (attached as .config)
compiler: c6x-elf-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=c6x 

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

All warnings (new ones prefixed by >>):

   In file included from drivers/usb/dwc3/core.c:36:
   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 | { ; }
         | ^
--
   In file included from drivers/usb/dwc3/host.c:12:
   include/linux/usb/xhci_pdriver.h:22:6: warning: no previous prototype for 'dwc3_host_wakeup_capable' [-Wmissing-prototypes]
      22 | void dwc3_host_wakeup_capable(struct device *dev, bool wakeup)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/usb/dwc3/host.c:14:
   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/host.c:16:6: error: redefinition of 'dwc3_host_wakeup_capable'
      16 | void dwc3_host_wakeup_capable(struct device *dev, bool wakeup)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/usb/dwc3/host.c:12:
   include/linux/usb/xhci_pdriver.h:22:6: note: previous definition of 'dwc3_host_wakeup_capable' was here
      22 | void dwc3_host_wakeup_capable(struct device *dev, bool wakeup)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/usb/dwc3/host.c:14:
   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

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

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

only message in thread, other threads:[~2021-03-03 18:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-02 23:33 [xlnx:xlnx_rebase_v5.4 908/1700] drivers/usb/dwc3/core.h:1436:5: warning: no previous prototype for 'dwc3_set_usb_core_power' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).