All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	linux-arm-kernel@lists.infradead.org,
	Michal Simek <monstr@monstr.eu>,
	Piyush Mehta <piyush.mehta@xilinx.com>
Subject: [xlnx:master 11279/12130] drivers/usb/gadget/function/f_tcm.c:2262:12: error: redefinition of 'tcm_get_alt'
Date: Thu, 22 Apr 2021 14:37:05 +0800	[thread overview]
Message-ID: <202104221457.rxVLmK26-lkp@intel.com> (raw)

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

tree:   https://github.com/Xilinx/linux-xlnx master
head:   0605a36e057480f3a83ae401e7ff59739da78e82
commit: c327a8947017ebe78c31d8018092a91b540dab8c [11279/12130] usb: function: f_tcm: Add support for getting alt interface number
config: x86_64-randconfig-r023-20210421 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d87b9b81ccb95217181ce75515c6c68bbb408ca4)
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 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 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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36260 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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [xlnx:master 11279/12130] drivers/usb/gadget/function/f_tcm.c:2262:12: error: redefinition of 'tcm_get_alt'
Date: Thu, 22 Apr 2021 14:37:05 +0800	[thread overview]
Message-ID: <202104221457.rxVLmK26-lkp@intel.com> (raw)

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

tree:   https://github.com/Xilinx/linux-xlnx master
head:   0605a36e057480f3a83ae401e7ff59739da78e82
commit: c327a8947017ebe78c31d8018092a91b540dab8c [11279/12130] usb: function: f_tcm: Add support for getting alt interface number
config: x86_64-randconfig-r023-20210421 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d87b9b81ccb95217181ce75515c6c68bbb408ca4)
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 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 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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36260 bytes --]

             reply	other threads:[~2021-04-22  6:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-22  6:37 kernel test robot [this message]
2021-04-22  6:37 ` [xlnx:master 11279/12130] drivers/usb/gadget/function/f_tcm.c:2262:12: error: redefinition of 'tcm_get_alt' kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202104221457.rxVLmK26-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anurag.kumar.vulisha@xilinx.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=monstr@monstr.eu \
    --cc=piyush.mehta@xilinx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.