All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Amelie Delaunay <amelie.delaunay@st.com>
Cc: kbuild-all@lists.01.org, linux-usb@vger.kernel.org,
	linux-omap@vger.kernel.org, Felipe Balbi <balbi@kernel.org>
Subject: [balbi-usb:testing/next 1/39] drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode'
Date: Fri, 24 Jul 2020 13:17:14 +0800	[thread overview]
Message-ID: <202007241311.MMbsxewn%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
head:   74dbc49b08d37ed9d4fd440d8896626733f80564
commit: bc0f0d4a5853e32ba97a0318f774570428fc5634 [1/39] usb: dwc2: override PHY input signals with usb role switch support
config: nios2-randconfig-r002-20200724 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.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
        git checkout bc0f0d4a5853e32ba97a0318f774570428fc5634
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 

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/dwc2/drd.c: In function 'dwc2_drd_role_sw_set':
>> drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode'
      80 |  if (role == USB_ROLE_NONE && hsotg->test_mode) {
         |                                    ^~
>> drivers/usb/dwc2/drd.c:114:5: error: implicit declaration of function 'dwc2_hsotg_core_disconnect'; did you mean 'dwc2_hsotg_core_connect'? [-Werror=implicit-function-declaration]
     114 |     dwc2_hsotg_core_disconnect(hsotg);
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
         |     dwc2_hsotg_core_connect
   cc1: some warnings being treated as errors

vim +80 drivers/usb/dwc2/drd.c

    68	
    69	static int dwc2_drd_role_sw_set(struct usb_role_switch *sw, enum usb_role role)
    70	{
    71		struct dwc2_hsotg *hsotg = usb_role_switch_get_drvdata(sw);
    72		unsigned long flags;
    73	
    74		/* Skip session not in line with dr_mode */
    75		if ((role == USB_ROLE_DEVICE && hsotg->dr_mode == USB_DR_MODE_HOST) ||
    76		    (role == USB_ROLE_HOST && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL))
    77			return -EINVAL;
    78	
    79		/* Skip session if core is in test mode */
  > 80		if (role == USB_ROLE_NONE && hsotg->test_mode) {
    81			dev_dbg(hsotg->dev, "Core is in test mode\n");
    82			return -EBUSY;
    83		}
    84	
    85		spin_lock_irqsave(&hsotg->lock, flags);
    86	
    87		if (role == USB_ROLE_HOST) {
    88			if (dwc2_ovr_avalid(hsotg, true))
    89				goto unlock;
    90	
    91			if (hsotg->dr_mode == USB_DR_MODE_OTG)
    92				/*
    93				 * This will raise a Connector ID Status Change
    94				 * Interrupt - connID A
    95				 */
    96				dwc2_force_mode(hsotg, true);
    97		} else if (role == USB_ROLE_DEVICE) {
    98			if (dwc2_ovr_bvalid(hsotg, true))
    99				goto unlock;
   100	
   101			if (hsotg->dr_mode == USB_DR_MODE_OTG)
   102				/*
   103				 * This will raise a Connector ID Status Change
   104				 * Interrupt - connID B
   105				 */
   106				dwc2_force_mode(hsotg, false);
   107	
   108			/* This clear DCTL.SFTDISCON bit */
   109			dwc2_hsotg_core_connect(hsotg);
   110		} else {
   111			if (dwc2_is_device_mode(hsotg)) {
   112				if (!dwc2_ovr_bvalid(hsotg, false))
   113					/* This set DCTL.SFTDISCON bit */
 > 114					dwc2_hsotg_core_disconnect(hsotg);
   115			} else {
   116				dwc2_ovr_avalid(hsotg, false);
   117			}
   118		}
   119	
   120	unlock:
   121		spin_unlock_irqrestore(&hsotg->lock, flags);
   122	
   123		dev_dbg(hsotg->dev, "%s-session valid\n",
   124			role == USB_ROLE_NONE ? "No" :
   125			role == USB_ROLE_HOST ? "A" : "B");
   126	
   127		return 0;
   128	}
   129	

---
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: 20325 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [balbi-usb:testing/next 1/39] drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode'
Date: Fri, 24 Jul 2020 13:17:14 +0800	[thread overview]
Message-ID: <202007241311.MMbsxewn%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
head:   74dbc49b08d37ed9d4fd440d8896626733f80564
commit: bc0f0d4a5853e32ba97a0318f774570428fc5634 [1/39] usb: dwc2: override PHY input signals with usb role switch support
config: nios2-randconfig-r002-20200724 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.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
        git checkout bc0f0d4a5853e32ba97a0318f774570428fc5634
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 

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/dwc2/drd.c: In function 'dwc2_drd_role_sw_set':
>> drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode'
      80 |  if (role == USB_ROLE_NONE && hsotg->test_mode) {
         |                                    ^~
>> drivers/usb/dwc2/drd.c:114:5: error: implicit declaration of function 'dwc2_hsotg_core_disconnect'; did you mean 'dwc2_hsotg_core_connect'? [-Werror=implicit-function-declaration]
     114 |     dwc2_hsotg_core_disconnect(hsotg);
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
         |     dwc2_hsotg_core_connect
   cc1: some warnings being treated as errors

vim +80 drivers/usb/dwc2/drd.c

    68	
    69	static int dwc2_drd_role_sw_set(struct usb_role_switch *sw, enum usb_role role)
    70	{
    71		struct dwc2_hsotg *hsotg = usb_role_switch_get_drvdata(sw);
    72		unsigned long flags;
    73	
    74		/* Skip session not in line with dr_mode */
    75		if ((role == USB_ROLE_DEVICE && hsotg->dr_mode == USB_DR_MODE_HOST) ||
    76		    (role == USB_ROLE_HOST && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL))
    77			return -EINVAL;
    78	
    79		/* Skip session if core is in test mode */
  > 80		if (role == USB_ROLE_NONE && hsotg->test_mode) {
    81			dev_dbg(hsotg->dev, "Core is in test mode\n");
    82			return -EBUSY;
    83		}
    84	
    85		spin_lock_irqsave(&hsotg->lock, flags);
    86	
    87		if (role == USB_ROLE_HOST) {
    88			if (dwc2_ovr_avalid(hsotg, true))
    89				goto unlock;
    90	
    91			if (hsotg->dr_mode == USB_DR_MODE_OTG)
    92				/*
    93				 * This will raise a Connector ID Status Change
    94				 * Interrupt - connID A
    95				 */
    96				dwc2_force_mode(hsotg, true);
    97		} else if (role == USB_ROLE_DEVICE) {
    98			if (dwc2_ovr_bvalid(hsotg, true))
    99				goto unlock;
   100	
   101			if (hsotg->dr_mode == USB_DR_MODE_OTG)
   102				/*
   103				 * This will raise a Connector ID Status Change
   104				 * Interrupt - connID B
   105				 */
   106				dwc2_force_mode(hsotg, false);
   107	
   108			/* This clear DCTL.SFTDISCON bit */
   109			dwc2_hsotg_core_connect(hsotg);
   110		} else {
   111			if (dwc2_is_device_mode(hsotg)) {
   112				if (!dwc2_ovr_bvalid(hsotg, false))
   113					/* This set DCTL.SFTDISCON bit */
 > 114					dwc2_hsotg_core_disconnect(hsotg);
   115			} else {
   116				dwc2_ovr_avalid(hsotg, false);
   117			}
   118		}
   119	
   120	unlock:
   121		spin_unlock_irqrestore(&hsotg->lock, flags);
   122	
   123		dev_dbg(hsotg->dev, "%s-session valid\n",
   124			role == USB_ROLE_NONE ? "No" :
   125			role == USB_ROLE_HOST ? "A" : "B");
   126	
   127		return 0;
   128	}
   129	

---
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: 20325 bytes --]

             reply	other threads:[~2020-07-24  5:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-24  5:17 kernel test robot [this message]
2020-07-24  5:17 ` [balbi-usb:testing/next 1/39] drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode' kernel test robot
2020-07-24  7:51 ` Felipe Balbi
2020-07-24  7:51   ` Felipe Balbi
2020-07-24  7:59   ` Amelie DELAUNAY
2020-07-24  7:59     ` Amelie DELAUNAY
2020-07-24 10:48     ` Amelie DELAUNAY
2020-07-24 10:48       ` Amelie DELAUNAY
2020-07-24 12:31       ` Amelie DELAUNAY
2020-07-24 12:31         ` Amelie DELAUNAY

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=202007241311.MMbsxewn%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=amelie.delaunay@st.com \
    --cc=balbi@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /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.