Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5923082iob; Tue, 10 May 2022 06:48:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvpobTP+Kg2uTLfBZaNew6RO/xyE/o/OUVuc2SwA/PbXDVyTFLlp+dpfKyAa0egvLPFLlo X-Received: by 2002:a17:907:a0ca:b0:6f8:5bef:b9c with SMTP id hw10-20020a170907a0ca00b006f85bef0b9cmr15293953ejc.630.1652190538322; Tue, 10 May 2022 06:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652190538; cv=none; d=google.com; s=arc-20160816; b=jSq4O4FPgOthNpXUBOkLTzNYDc2tQ3IQnE1pdqAnRMKekjoSt6FQ9WQOlsODGnDyAE e4TstwE9F05EXFlVspqJkkza4sgxn1xuXTJ9aA6tsYxkeECNsmoy7hQh+1KVTF+8h2SJ NstlChW+nTSuIOVG782uIeV6dKmncPXRMp1NetNJzH7EButUQr+T34OKfKtKCL80j+9Y OmdbPdJ3jH2dagAWmh+/vBd/eFk1It6580/SicDY1vbBmsSNmoHYrfSxDygWbjMn298F WKmdMLik2zvw4ASVjbct8YsJk7Z0IMoWUeeG1Yh6dHhtmRE2xGDaCAxCEuqsBHQ6mLHL L/Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tmfPKhloPkO/jVmjrd/gvU7O381wxHIYodz/J3AHnD8=; b=dr2afkkZRV5MTAI9vj75Qcsmx48Tqxdk6LLbg8b9jHPmP8M+Tr93pgNfJQR6IEW7zQ nOXzvJpWwnSGb1ESU3/Q7Q1IjSV/3BFXNw820DL+G2jzbEYxhF3qtebu5TJewewogaoR HWg//zcTaSEdc/nbAS9d5kVDX+WjAUMIrOmqREi2eJmeBQyQkv8MnMXb9qZOcdhN2AGz i7sSkjKztU7Tlf95Wrtg55L51hEA+2j3Spc7wJavlBm/l9BRKeAlXXObZxnijcr8ULFX pVP0LabTMNKExgNsorBGm03elq2IkwH6BWWprqOvr8xBZiR9x6jmHSuARf/5G0Cj2sso Vvhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bVcGmUgW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bi13-20020a170906a24d00b006df76385cb5si15540889ejb.341.2022.05.10.06.48.31; Tue, 10 May 2022 06:48:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bVcGmUgW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229996AbiEJIcs (ORCPT + 99 others); Tue, 10 May 2022 04:32:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232322AbiEJIcn (ORCPT ); Tue, 10 May 2022 04:32:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B96F36E26; Tue, 10 May 2022 01:28:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DBFBA6120D; Tue, 10 May 2022 08:28:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FD2AC385C9; Tue, 10 May 2022 08:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652171326; bh=RqCJf8kgze++idptJ3xnVFyet34bi4Uq9DXOU8Jttpo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bVcGmUgWoobvo4Yl2VlegFG8I9rHVV733zwbuSWYQDm61T/rDtd4W5ynUfuDN5LOD w9uX+vridJ6m86tsTjUOb31amhwIgAajk1NLLt82ltQL5wzBAgndxIHJ/cxHD1tCK5 D4Qu7Cu7BzrnBVMbg7Ocqxq6JRPK4nyhlFAK7jWo= Date: Tue, 10 May 2022 10:28:42 +0200 From: Greg KH To: Guan Jing Cc: balbi@kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] usb: dwc3: include extcon.h to fix compile error Message-ID: References: <20220510082029.197841-1-guanjing6@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220510082029.197841-1-guanjing6@huawei.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 10, 2022 at 04:20:29PM +0800, Guan Jing wrote: > If dwc3 is not include extcon.h, the dwc3 driver > will fail to link: > > drivers/usb/dwc3/core.o: In function `dwc3_probe': > core.c:(.text+0x1095): undefined reference to `extcon_get_edev_by_phandle' > core.c:(.text+0x10bd): undefined reference to `extcon_get_extcon_dev' > > Add miss #include to fix this error. > > Reported-by: Hulk Robot > Signed-off-by: Guan Jing > --- > drivers/usb/dwc3/core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c > index 950e238c65bf..ea7259443283 100644 > --- a/drivers/usb/dwc3/core.c > +++ b/drivers/usb/dwc3/core.c > @@ -33,6 +33,7 @@ > #include > #include > #include > +#include > > #include "core.h" > #include "gadget.h" > -- > 2.17.1 > Very odd, I do not see these build errors here. What commit id does this change fix? What caused the problem? And please put the extcon.h include above the usb includes, as that's the better place for it, right? thanks, greg k-h