* [balbi-usb:testing/next 1/39] drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode'
@ 2020-07-24 5:17 ` kernel test robot
0 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2020-07-24 5:17 UTC (permalink / raw)
To: Amelie Delaunay; +Cc: kbuild-all, linux-usb, linux-omap, Felipe Balbi
[-- 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 --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* [balbi-usb:testing/next 1/39] drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode'
@ 2020-07-24 5:17 ` kernel test robot
0 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2020-07-24 5:17 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [balbi-usb:testing/next 1/39] drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode'
2020-07-24 5:17 ` kernel test robot
@ 2020-07-24 7:51 ` Felipe Balbi
-1 siblings, 0 replies; 10+ messages in thread
From: Felipe Balbi @ 2020-07-24 7:51 UTC (permalink / raw)
To: kernel test robot, Amelie Delaunay, Minas Harutyunyan
Cc: kbuild-all, linux-usb, linux-omap
[-- Attachment #1: Type: text/plain, Size: 1636 bytes --]
kernel test robot <lkp@intel.com> writes:
> 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) {
weird, this compiled just fine here with allmodconfig on AArch64.
/me goes check. Oh, I see what's happening, hsotg->test_mode is only
compiled on Peripheral-only and Dual-role builds. I'm assuming this was
a Host-only build. Then the problem triggers because drd.o is
unconditionally added to the binary.
dwc2-y := core.o core_intr.o platform.o drd.o
Is this an old problem or was it triggered by $subject?
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [balbi-usb:testing/next 1/39] drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode'
@ 2020-07-24 7:51 ` Felipe Balbi
0 siblings, 0 replies; 10+ messages in thread
From: Felipe Balbi @ 2020-07-24 7:51 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1636 bytes --]
kernel test robot <lkp@intel.com> writes:
> 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) {
weird, this compiled just fine here with allmodconfig on AArch64.
/me goes check. Oh, I see what's happening, hsotg->test_mode is only
compiled on Peripheral-only and Dual-role builds. I'm assuming this was
a Host-only build. Then the problem triggers because drd.o is
unconditionally added to the binary.
dwc2-y := core.o core_intr.o platform.o drd.o
Is this an old problem or was it triggered by $subject?
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [balbi-usb:testing/next 1/39] drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode'
2020-07-24 7:51 ` Felipe Balbi
@ 2020-07-24 7:59 ` Amelie DELAUNAY
-1 siblings, 0 replies; 10+ messages in thread
From: Amelie DELAUNAY @ 2020-07-24 7:59 UTC (permalink / raw)
To: Felipe Balbi, kernel test robot, Minas Harutyunyan
Cc: kbuild-all, linux-usb, linux-omap
Hi Felipe,
On 7/24/20 9:51 AM, Felipe Balbi wrote:
> kernel test robot <lkp@intel.com> writes:
>
>> 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) {
>
> weird, this compiled just fine here with allmodconfig on AArch64.
>
> /me goes check. Oh, I see what's happening, hsotg->test_mode is only
> compiled on Peripheral-only and Dual-role builds. I'm assuming this was
> a Host-only build. Then the problem triggers because drd.o is
> unconditionally added to the binary.
>
> dwc2-y := core.o core_intr.o platform.o drd.o
>
> Is this an old problem or was it triggered by $subject?
>
I sent a mail yesterday (https://lkml.org/lkml/2020/7/23/114) to warn
about the upcoming v2.
This build issue is fixed in the v2
(https://lore.kernel.org/patchwork/project/lkml/list/?series=454729).
Regards,
Amelie
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [balbi-usb:testing/next 1/39] drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode'
@ 2020-07-24 7:59 ` Amelie DELAUNAY
0 siblings, 0 replies; 10+ messages in thread
From: Amelie DELAUNAY @ 2020-07-24 7:59 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1962 bytes --]
Hi Felipe,
On 7/24/20 9:51 AM, Felipe Balbi wrote:
> kernel test robot <lkp@intel.com> writes:
>
>> 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) {
>
> weird, this compiled just fine here with allmodconfig on AArch64.
>
> /me goes check. Oh, I see what's happening, hsotg->test_mode is only
> compiled on Peripheral-only and Dual-role builds. I'm assuming this was
> a Host-only build. Then the problem triggers because drd.o is
> unconditionally added to the binary.
>
> dwc2-y := core.o core_intr.o platform.o drd.o
>
> Is this an old problem or was it triggered by $subject?
>
I sent a mail yesterday (https://lkml.org/lkml/2020/7/23/114) to warn
about the upcoming v2.
This build issue is fixed in the v2
(https://lore.kernel.org/patchwork/project/lkml/list/?series=454729).
Regards,
Amelie
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [balbi-usb:testing/next 1/39] drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode'
2020-07-24 7:59 ` Amelie DELAUNAY
@ 2020-07-24 10:48 ` Amelie DELAUNAY
-1 siblings, 0 replies; 10+ messages in thread
From: Amelie DELAUNAY @ 2020-07-24 10:48 UTC (permalink / raw)
To: Felipe Balbi, kernel test robot, Minas Harutyunyan
Cc: kbuild-all, linux-usb, linux-omap
On 7/24/20 9:59 AM, Amelie DELAUNAY wrote:
> Hi Felipe,
>
> On 7/24/20 9:51 AM, Felipe Balbi wrote:
>> kernel test robot <lkp@intel.com> writes:
>>
>>> 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) {
>>
>> weird, this compiled just fine here with allmodconfig on AArch64.
>>
>> /me goes check. Oh, I see what's happening, hsotg->test_mode is only
>> compiled on Peripheral-only and Dual-role builds. I'm assuming this was
>> a Host-only build. Then the problem triggers because drd.o is
>> unconditionally added to the binary.
>>
>> dwc2-y := core.o core_intr.o platform.o drd.o
>>
>> Is this an old problem or was it triggered by $subject?
>>
>
> I sent a mail yesterday (https://lkml.org/lkml/2020/7/23/114) to warn
> about the upcoming v2.
>
> This build issue is fixed in the v2
> (https://lore.kernel.org/patchwork/project/lkml/list/?series=454729).
>
Build issue fixed in v3 instead:
https://lore.kernel.org/patchwork/project/lkml/list/?series=454936
> Regards,
> Amelie
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [balbi-usb:testing/next 1/39] drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode'
@ 2020-07-24 10:48 ` Amelie DELAUNAY
0 siblings, 0 replies; 10+ messages in thread
From: Amelie DELAUNAY @ 2020-07-24 10:48 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2292 bytes --]
On 7/24/20 9:59 AM, Amelie DELAUNAY wrote:
> Hi Felipe,
>
> On 7/24/20 9:51 AM, Felipe Balbi wrote:
>> kernel test robot <lkp@intel.com> writes:
>>
>>> 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) {
>>
>> weird, this compiled just fine here with allmodconfig on AArch64.
>>
>> /me goes check. Oh, I see what's happening, hsotg->test_mode is only
>> compiled on Peripheral-only and Dual-role builds. I'm assuming this was
>> a Host-only build. Then the problem triggers because drd.o is
>> unconditionally added to the binary.
>>
>> dwc2-y := core.o core_intr.o platform.o drd.o
>>
>> Is this an old problem or was it triggered by $subject?
>>
>
> I sent a mail yesterday (https://lkml.org/lkml/2020/7/23/114) to warn
> about the upcoming v2.
>
> This build issue is fixed in the v2
> (https://lore.kernel.org/patchwork/project/lkml/list/?series=454729).
>
Build issue fixed in v3 instead:
https://lore.kernel.org/patchwork/project/lkml/list/?series=454936
> Regards,
> Amelie
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [balbi-usb:testing/next 1/39] drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode'
2020-07-24 10:48 ` Amelie DELAUNAY
@ 2020-07-24 12:31 ` Amelie DELAUNAY
-1 siblings, 0 replies; 10+ messages in thread
From: Amelie DELAUNAY @ 2020-07-24 12:31 UTC (permalink / raw)
To: Felipe Balbi, kernel test robot, Minas Harutyunyan
Cc: kbuild-all, linux-usb, linux-omap
On 7/24/20 12:48 PM, Amelie DELAUNAY wrote:
> On 7/24/20 9:59 AM, Amelie DELAUNAY wrote:
>> Hi Felipe,
>>
>> On 7/24/20 9:51 AM, Felipe Balbi wrote:
>>> kernel test robot <lkp@intel.com> writes:
>>>
>>>> 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) {
>>>
>>> weird, this compiled just fine here with allmodconfig on AArch64.
>>>
>>> /me goes check. Oh, I see what's happening, hsotg->test_mode is only
>>> compiled on Peripheral-only and Dual-role builds. I'm assuming this was
>>> a Host-only build. Then the problem triggers because drd.o is
>>> unconditionally added to the binary.
>>>
>>> dwc2-y := core.o core_intr.o platform.o drd.o
>>>
>>> Is this an old problem or was it triggered by $subject?
>>>
>>
>> I sent a mail yesterday (https://lkml.org/lkml/2020/7/23/114) to warn
>> about the upcoming v2.
>>
>> This build issue is fixed in the v2
>> (https://lore.kernel.org/patchwork/project/lkml/list/?series=454729).
>>
>
> Build issue fixed in v3 instead:
> https://lore.kernel.org/patchwork/project/lkml/list/?series=454936
>
Drop the previous "Add USB role switch support to DWC2" patchset. I'm
preparing a new patchset with fixes to address this build issue and
remarks reported by Martin Blumenstingl.
>> Regards,
>> Amelie
>>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [balbi-usb:testing/next 1/39] drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode'
@ 2020-07-24 12:31 ` Amelie DELAUNAY
0 siblings, 0 replies; 10+ messages in thread
From: Amelie DELAUNAY @ 2020-07-24 12:31 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2588 bytes --]
On 7/24/20 12:48 PM, Amelie DELAUNAY wrote:
> On 7/24/20 9:59 AM, Amelie DELAUNAY wrote:
>> Hi Felipe,
>>
>> On 7/24/20 9:51 AM, Felipe Balbi wrote:
>>> kernel test robot <lkp@intel.com> writes:
>>>
>>>> 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) {
>>>
>>> weird, this compiled just fine here with allmodconfig on AArch64.
>>>
>>> /me goes check. Oh, I see what's happening, hsotg->test_mode is only
>>> compiled on Peripheral-only and Dual-role builds. I'm assuming this was
>>> a Host-only build. Then the problem triggers because drd.o is
>>> unconditionally added to the binary.
>>>
>>> dwc2-y := core.o core_intr.o platform.o drd.o
>>>
>>> Is this an old problem or was it triggered by $subject?
>>>
>>
>> I sent a mail yesterday (https://lkml.org/lkml/2020/7/23/114) to warn
>> about the upcoming v2.
>>
>> This build issue is fixed in the v2
>> (https://lore.kernel.org/patchwork/project/lkml/list/?series=454729).
>>
>
> Build issue fixed in v3 instead:
> https://lore.kernel.org/patchwork/project/lkml/list/?series=454936
>
Drop the previous "Add USB role switch support to DWC2" patchset. I'm
preparing a new patchset with fixes to address this build issue and
remarks reported by Martin Blumenstingl.
>> Regards,
>> Amelie
>>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2020-07-24 12:31 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 5:17 ` 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
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.