From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C76B6C433EA for ; Fri, 24 Jul 2020 10:49:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A759720748 for ; Fri, 24 Jul 2020 10:49:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=st.com header.i=@st.com header.b="lP6OiOVX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728005AbgGXKtK (ORCPT ); Fri, 24 Jul 2020 06:49:10 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:32328 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726607AbgGXKtJ (ORCPT ); Fri, 24 Jul 2020 06:49:09 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06OAmbVi002511; Fri, 24 Jul 2020 12:48:56 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : from : to : cc : references : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=iBJ6KkC+lhaupehlNacQ+CO4RFZx3Hx5ddo8QSwmCLM=; b=lP6OiOVXBymdZQUELdBovgoGlbvQQKOZuNfT7PlSGbzF6x212er5ujQ0YwaAxzRFvgaM T97elWfHHbw49BoAaMnzKz+xiOOPBt8AuTkXaA3u3BEvDgwGEbK3FqvCQHz7AeMf8C74 Zg12pZtzd25htF0SYP23LZJvU07p2B2/Z78mSvJ5V51MWzUlvZ8LI/DbYhd6/sXAIkT+ 5IFIwd6y7OBVslltyEktTZm/f8lW2uIljuyIIaO51gHPZZ4E6uOwd3HO+HgHq7Yarbm7 dp3WLi+FXw8I44IxRBY93t+ZHpSl92iWPmOZScKOI0MomOW9/Y1OWGQYKVnPnzD7SKn/ Fw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 32cux0tb0q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Jul 2020 12:48:56 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F2F1C100034; Fri, 24 Jul 2020 12:48:55 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id BD80F2AE6D7; Fri, 24 Jul 2020 12:48:55 +0200 (CEST) Received: from lmecxl0995.lme.st.com (10.75.127.47) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 24 Jul 2020 12:48:55 +0200 Subject: Re: [balbi-usb:testing/next 1/39] drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no member named 'test_mode' From: Amelie DELAUNAY To: Felipe Balbi , kernel test robot , Minas Harutyunyan CC: "kbuild-all@lists.01.org" , "linux-usb@vger.kernel.org" , "linux-omap@vger.kernel.org" References: <202007241311.MMbsxewn%lkp@intel.com> <875zadnyek.fsf@kernel.org> <8098bdd6-9de2-dfdf-1e50-b027296ea254@st.com> Message-ID: Date: Fri, 24 Jul 2020 12:48:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <8098bdd6-9de2-dfdf-1e50-b027296ea254@st.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG7NODE3.st.com (10.75.127.21) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-24_03:2020-07-24,2020-07-24 signatures=0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org 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 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 >>> >>> 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 > From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4802308131546522071==" MIME-Version: 1.0 From: Amelie DELAUNAY To: kbuild-all@lists.01.org Subject: Re: [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 12:48:54 +0200 Message-ID: In-Reply-To: <8098bdd6-9de2-dfdf-1e50-b027296ea254@st.com> List-Id: --===============4802308131546522071== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 writes: >> >>> tree:=C2=A0=C2=A0 https://git.kernel.org/pub/scm/linux/kernel/git/balbi= /usb.git = >>> testing/next >>> head:=C2=A0=C2=A0 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=3D1 build): >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 wget = >>> https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cros= s = >>> -O ~/bin/make.cross >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 chmod +x ~/bin/make.cr= oss >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 git checkout bc0f0d4a5= 853e32ba97a0318f774570428fc5634 >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # save the attached .c= onfig to linux build tree >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 COMPILER_INSTALL_PATH= =3D$HOME/0day COMPILER=3Dgcc-9.3.0 = >>> make.cross ARCH=3Dnios2 >>> >>> If you fix the issue, kindly add following tag as appropriate >>> Reported-by: kernel test robot >>> >>> All errors (new ones prefixed by >>): >>> >>> =C2=A0=C2=A0=C2=A0 drivers/usb/dwc2/drd.c: In function 'dwc2_drd_role_s= w_set': >>>>> drivers/usb/dwc2/drd.c:80:36: error: 'struct dwc2_hsotg' has no = >>>>> member named 'test_mode' >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 80 |=C2=A0 if (role =3D=3D USB_ROL= E_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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 :=3D core.o core_intr.o pl= atform.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=3D454729). > = Build issue fixed in v3 instead: https://lore.kernel.org/patchwork/project/lkml/list/?series=3D454936 > Regards, > Amelie >=20 --===============4802308131546522071==--