[xlnx:master 11279/12271] drivers/usb/gadget/function/f_tcm.c:2262:12: error: redefinition of 'tcm_get_alt'

kernel test robot lkp at intel.com
Tue Jun 1 15:48:46 PDT 2021


Hi Anurag,

FYI, the error/warning still remains.

tree:   https://github.com/Xilinx/linux-xlnx master
head:   7f873540571622aed9e016b6caccea0753f81a8f
commit: c327a8947017ebe78c31d8018092a91b540dab8c [11279/12271] usb: function: f_tcm: Add support for getting alt interface number
config: x86_64-randconfig-r035-20210601 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project db26cd30b6dd65e88d786e97a1e453af5cd48966)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/Xilinx/linux-xlnx/commit/c327a8947017ebe78c31d8018092a91b540dab8c
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx master
        git checkout c327a8947017ebe78c31d8018092a91b540dab8c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   drivers/usb/gadget/function/f_tcm.c:342:12: warning: address of array 'fu->cmd' will always evaluate to 'true' [-Wpointer-bool-conversion]
                   if (!fu->cmd)
                       ~~~~~^~~
>> drivers/usb/gadget/function/f_tcm.c:2262:12: error: redefinition of 'tcm_get_alt'
   static int tcm_get_alt(struct usb_function *f, unsigned int intf)
              ^
   drivers/usb/gadget/function/f_tcm.c:2233:12: note: previous definition is here
   static int tcm_get_alt(struct usb_function *f, unsigned intf)
              ^
   1 warning and 1 error generated.


vim +/tcm_get_alt +2262 drivers/usb/gadget/function/f_tcm.c

  2261	
> 2262	static int tcm_get_alt(struct usb_function *f, unsigned int intf)
  2263	{
  2264		struct f_uas *fu = to_f_uas(f);
  2265	
  2266		return fu->flags & USBG_IS_UAS ? 1 : 0;
  2267	}
  2268	

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


More information about the linux-arm-kernel mailing list