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

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

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   1ad9b65f0dbe2b3ecc22a498e75a48d8ee39bbda
commit: 68a922ded3cde24cb75c0cad0c62403d97ca9aaf [908/1767] usb: dwc3: Add code for supporting entering into D3 state during suspend
config: x86_64-randconfig-a003-20211004 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c0039de2953d15815448b4b3c3bafb45607781e0)
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 xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.4
        git checkout 68a922ded3cde24cb75c0cad0c62403d97ca9aaf
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

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 function 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
   void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
        ^
   drivers/usb/dwc3/core.h:1430:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
   ^
   static 
   drivers/usb/dwc3/core.h:1432:6: warning: no previous prototype for function 'dwc3_set_simple_data' [-Wmissing-prototypes]
   void dwc3_set_simple_data(struct dwc3 *dwc)
        ^
   drivers/usb/dwc3/core.h:1432:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dwc3_set_simple_data(struct dwc3 *dwc)
   ^
   static 
   drivers/usb/dwc3/core.h:1434:6: warning: no previous prototype for function 'dwc3_simple_check_quirks' [-Wmissing-prototypes]
   void dwc3_simple_check_quirks(struct dwc3 *dwc)
        ^
   drivers/usb/dwc3/core.h:1434:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dwc3_simple_check_quirks(struct dwc3 *dwc)
   ^
   static 
>> drivers/usb/dwc3/core.h:1436:5: warning: no previous prototype for function 'dwc3_set_usb_core_power' [-Wmissing-prototypes]
   int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
       ^
   drivers/usb/dwc3/core.h:1436:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
   ^
   static 
>> drivers/usb/dwc3/core.h:1437:5: warning: non-void function does not return a value [-Wreturn-type]
   { ; }
       ^
   5 warnings generated.
--
   In file included from drivers/usb/dwc3/trace.c:11:
   In file included from drivers/usb/dwc3/trace.h:19:
   drivers/usb/dwc3/core.h:1430:6: warning: no previous prototype for function 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
   void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
        ^
   drivers/usb/dwc3/core.h:1430:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
   ^
   static 
   drivers/usb/dwc3/core.h:1432:6: warning: no previous prototype for function 'dwc3_set_simple_data' [-Wmissing-prototypes]
   void dwc3_set_simple_data(struct dwc3 *dwc)
        ^
   drivers/usb/dwc3/core.h:1432:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dwc3_set_simple_data(struct dwc3 *dwc)
   ^
   static 
   drivers/usb/dwc3/core.h:1434:6: warning: no previous prototype for function 'dwc3_simple_check_quirks' [-Wmissing-prototypes]
   void dwc3_simple_check_quirks(struct dwc3 *dwc)
        ^
   drivers/usb/dwc3/core.h:1434:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dwc3_simple_check_quirks(struct dwc3 *dwc)
   ^
   static 
>> drivers/usb/dwc3/core.h:1436:5: warning: no previous prototype for function 'dwc3_set_usb_core_power' [-Wmissing-prototypes]
   int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
       ^
   drivers/usb/dwc3/core.h:1436:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
   ^
   static 
>> drivers/usb/dwc3/core.h:1437:5: warning: non-void function does not return a value [-Wreturn-type]
   { ; }
       ^
   In file included from drivers/usb/dwc3/trace.c:11:
   In file included from drivers/usb/dwc3/trace.h:343:
   include/trace/define_trace.h:95:10: fatal error: './trace.h' file not found
   #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:90:32: note: expanded from macro 'TRACE_INCLUDE'
   # define TRACE_INCLUDE(system) __TRACE_INCLUDE(system)
                                  ^~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:87:34: note: expanded from macro '__TRACE_INCLUDE'
   # define __TRACE_INCLUDE(system) __stringify(TRACE_INCLUDE_PATH/system.h)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/stringify.h:10:27: note: expanded from macro '__stringify'
   #define __stringify(x...)       __stringify_1(x)
                                   ^~~~~~~~~~~~~~~~
   include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1'
   #define __stringify_1(x...)     #x
                                   ^~
   <scratch space>:149:1: note: expanded from here
   "./trace.h"
   ^~~~~~~~~~~
   5 warnings and 1 error generated.


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: 34061 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-10-06  3:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-06  3:33 [xilinx-xlnx:xlnx_rebase_v5.4 908/1767] drivers/usb/dwc3/core.h:1436:5: warning: no previous prototype for function '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).