[xilinx-xlnx:xlnx_rebase_v5.4 935/1767] drivers/usb/dwc3/core.h:1459:6: warning: no previous prototype for function 'dwc3_mask_phy_reset'

kernel test robot lkp at intel.com
Tue Oct 5 21:58:57 PDT 2021


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   1ad9b65f0dbe2b3ecc22a498e75a48d8ee39bbda
commit: 128feece434d1c02d2dfac7e4103b2c73b6afb27 [935/1767] usb: dwc3: Add support for masking phy reset signal
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/128feece434d1c02d2dfac7e4103b2c73b6afb27
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.4
        git checkout 128feece434d1c02d2dfac7e4103b2c73b6afb27
        # 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 at intel.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/usb/dwc3/core.c:36:
   drivers/usb/dwc3/core.h:1451: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:1451: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:1453: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:1453: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:1455: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:1455: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:1457: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:1457: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:1458:5: warning: non-void function does not return a value [-Wreturn-type]
   { ; }
       ^
>> drivers/usb/dwc3/core.h:1459:6: warning: no previous prototype for function 'dwc3_mask_phy_reset' [-Wmissing-prototypes]
   void dwc3_mask_phy_reset(struct device *dev, bool mask)
        ^
   drivers/usb/dwc3/core.h:1459:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dwc3_mask_phy_reset(struct device *dev, bool mask)
   ^
   static 
   drivers/usb/dwc3/core.c:386:6: warning: no previous prototype for function 'dwc3_free_event_buffers' [-Wmissing-prototypes]
   void dwc3_free_event_buffers(struct dwc3 *dwc)
        ^
   drivers/usb/dwc3/core.c:386:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dwc3_free_event_buffers(struct dwc3 *dwc)
   ^
   static 
   drivers/usb/dwc3/core.c:403:5: warning: no previous prototype for function 'dwc3_alloc_event_buffers' [-Wmissing-prototypes]
   int dwc3_alloc_event_buffers(struct dwc3 *dwc, unsigned length)
       ^
   drivers/usb/dwc3/core.c:403:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int dwc3_alloc_event_buffers(struct dwc3 *dwc, unsigned length)
   ^
   static 
   drivers/usb/dwc3/core.c:977:5: warning: no previous prototype for function 'dwc3_core_init' [-Wmissing-prototypes]
   int dwc3_core_init(struct dwc3 *dwc)
       ^
   drivers/usb/dwc3/core.c:977:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int dwc3_core_init(struct dwc3 *dwc)
   ^
   static 
   9 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:1451: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:1451: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:1453: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:1453: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:1455: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:1455: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:1457: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:1457: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:1458:5: warning: non-void function does not return a value [-Wreturn-type]
   { ; }
       ^
>> drivers/usb/dwc3/core.h:1459:6: warning: no previous prototype for function 'dwc3_mask_phy_reset' [-Wmissing-prototypes]
   void dwc3_mask_phy_reset(struct device *dev, bool mask)
        ^
   drivers/usb/dwc3/core.h:1459:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dwc3_mask_phy_reset(struct device *dev, bool mask)
   ^
   static 
   6 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:1451: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:1451: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:1453: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:1453: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:1455: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:1455: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:1457: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:1457: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:1458:5: warning: non-void function does not return a value [-Wreturn-type]
   { ; }
       ^
>> drivers/usb/dwc3/core.h:1459:6: warning: no previous prototype for function 'dwc3_mask_phy_reset' [-Wmissing-prototypes]
   void dwc3_mask_phy_reset(struct device *dev, bool mask)
        ^
   drivers/usb/dwc3/core.h:1459:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dwc3_mask_phy_reset(struct device *dev, bool mask)
   ^
   static 
   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>:169:1: note: expanded from here
   "./trace.h"
   ^~~~~~~~~~~
   6 warnings and 1 error generated.


vim +/dwc3_mask_phy_reset +1459 drivers/usb/dwc3/core.h

  1440	
  1441	#if IS_ENABLED(CONFIG_USB_DWC3_OF_SIMPLE)
  1442	int dwc3_enable_hw_coherency(struct device *dev);
  1443	void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup);
  1444	void dwc3_set_simple_data(struct dwc3 *dwc);
  1445	void dwc3_simple_check_quirks(struct dwc3 *dwc);
  1446	int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on);
  1447	void dwc3_mask_phy_reset(struct device *dev, bool mask);
  1448	#else
  1449	static inline int dwc3_enable_hw_coherency(struct device *dev)
  1450	{ return 1; }
  1451	void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
  1452	{ ; }
  1453	void dwc3_set_simple_data(struct dwc3 *dwc)
  1454	{ ; }
  1455	void dwc3_simple_check_quirks(struct dwc3 *dwc)
  1456	{ ; }
  1457	int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
  1458	{ ; }
> 1459	void dwc3_mask_phy_reset(struct device *dev, bool mask)
  1460	{ ; }
  1461	#endif
  1462	

---
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: 34061 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20211006/6b4c2208/attachment-0001.gz>


More information about the linux-arm-kernel mailing list