Re: [usb:usb-testing 25/35] drivers/usb/cdns3/cdns3-starfive.c:23: warning: expecting prototype for cdns3(). Prototype was for USB_STRAP_HOST() instead

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 30, 2023 at 06:14:21AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
> head:   046895105d9666ab56e86ce8dd9786f8003125c6
> commit: bfb46b424652a3396b92ca3c96c169ade9b45b8d [25/35] usb: cdns3: Add StarFive JH7110 USB driver
> config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20230530/202305300608.8CuLyqAL-lkp@xxxxxxxxx/config)
> compiler: riscv64-linux-gcc (GCC) 12.1.0
> reproduce (this is a W=1 build):
>         mkdir -p ~/bin
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/?id=bfb46b424652a3396b92ca3c96c169ade9b45b8d
>         git remote add usb https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
>         git fetch --no-tags usb usb-testing
>         git checkout bfb46b424652a3396b92ca3c96c169ade9b45b8d
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 ~/bin/make.cross W=1 O=build_dir ARCH=riscv olddefconfig
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 ~/bin/make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
> 
> If you fix the issue, kindly add following tag where applicable
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202305300608.8CuLyqAL-lkp@xxxxxxxxx/
> 
> All warnings (new ones prefixed by >>):
> 
> >> drivers/usb/cdns3/cdns3-starfive.c:23: warning: expecting prototype for cdns3(). Prototype was for USB_STRAP_HOST() instead
> 
> 
> vim +23 drivers/usb/cdns3/cdns3-starfive.c
> 
>     22	
>   > 23	#define USB_STRAP_HOST			BIT(17)
>     24	#define USB_STRAP_DEVICE		BIT(18)
>     25	#define USB_STRAP_MASK			GENMASK(18, 16)
>     26	

I'm sorry, I don't understand this "warning" here.  There is no cdns3()
function anywhere, so why should it be "expected"?

thanks,

greg k-h



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux