[xilinx-xlnx:xlnx_rebase_v5.10 1947/1981] drivers/usb/dwc3/dwc3-xilinx.c:509:6: warning: no previous prototype for 'dwc3_xilinx_wakeup_capable'

kernel test robot lkp at intel.com
Fri Dec 17 18:59:52 PST 2021


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.10
head:   87ec9a2d98a7a7dfc98b57348a0ec310fd170e4b
commit: e2af4271df5c22814241e855edd3a23d6fae326b [1947/1981] usb: dwc3: Added remote wake-up in xilinx glue driver
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20211218/202112181013.6S0P8GDs-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.2.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/e2af4271df5c22814241e855edd3a23d6fae326b
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.10
        git checkout e2af4271df5c22814241e855edd3a23d6fae326b
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/remoteproc/ drivers/usb/dwc3/

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 >>):

>> drivers/usb/dwc3/dwc3-xilinx.c:509:6: warning: no previous prototype for 'dwc3_xilinx_wakeup_capable' [-Wmissing-prototypes]
     509 | void dwc3_xilinx_wakeup_capable(struct device *dev, bool wakeup)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/dwc3_xilinx_wakeup_capable +509 drivers/usb/dwc3/dwc3-xilinx.c

   507	
   508	/* xilinx feature support functions */
 > 509	void dwc3_xilinx_wakeup_capable(struct device *dev, bool wakeup)
   510	{
   511		struct device_node *node = of_node_get(dev->parent->of_node);
   512	
   513		/* check for valid parent node */
   514		while (node) {
   515			if (of_device_is_compatible(node, "xlnx,zynqmp-dwc3") ||
   516			    of_device_is_compatible(node, "xlnx,versal-dwc3"))
   517				break;
   518	
   519			/* get the next parent node */
   520			node = of_get_next_parent(node);
   521		}
   522	
   523		if (node) {
   524			struct platform_device *pdev_parent;
   525			struct dwc3_xlnx *priv_data;
   526	
   527			pdev_parent = of_find_device_by_node(node);
   528			priv_data = platform_get_drvdata(pdev_parent);
   529	
   530			/* Set wakeup capable as true or false */
   531			priv_data->wakeup_capable = wakeup;
   532	
   533			/* Allow D3 state if wakeup capable only */
   534			priv_data->enable_d3_suspend = wakeup;
   535		}
   536	}
   537	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org



More information about the linux-arm-kernel mailing list