Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp956336iob; Fri, 13 May 2022 17:38:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx34GrhIkBVFDen/hwju0rJjGBH+L+RfPZBbyH2kY8TtOsNoSYcW+jAnujpBNUXWY40Cd5Z X-Received: by 2002:a05:600c:ada:b0:394:30f0:5b24 with SMTP id c26-20020a05600c0ada00b0039430f05b24mr6699065wmr.57.1652488734334; Fri, 13 May 2022 17:38:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652488734; cv=none; d=google.com; s=arc-20160816; b=LN1cnYwq5guskxPxxzRG/UnnXpiDUHXxy5SRR3RD+pBapJxgtKVptYRAIgO2u2yBTM P7ytM5aGTEJtgjTOGP6I5LPz0mJ/Np5PUwRoPWN1h20m9TeHTgTD5YhhUoUdDFN+pV38 9/1CoGfI6thkbcNoawosWL3AlNaBv2I2QoRq+I1CjHTr16CdjfLCmFHApsURiD9ywO6S RrFMXW2kpgzLKiNtagrHTptT2Xw/kdl9eEfhkmdkBSYqWN0T+DAEzang0zgMjAI6GMCq y17keLqQZXpfZJ0SIYTr6Vuc7a1hyKCOX3LiSzrYWVYo9qQPR9vBNDtEYctzY15JzKpr Pd5Q== 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=y+hsveEtJzsg1/D8CjpYFhhGFpf52VvBXBg8spz1/hk=; b=jNBX4G79+hgbr0WIYNEj6evlBepIAv55PUMJCAlH4K8VkeyMSkrYOqcoPWhSOyKvUN kzmRXumHQ3dVSzvynOdDU6DZbXPWkYJkw0ifOuxpaK0Dsggpi1qvRO8dnWnIMoRVxD7B Bm/k+xpABlDjdhPWkgdVrIeX7GsjNsWyQJJ8exb8SpkrhuN3cE/W0h/exv555/a774N2 IY3gSVgtKi7QAoNf3BjIPbGd9mYf6jYC6vCB1FNN0ha1nA9Wi9RwyPH4LGZklPyjyXUB vLCm4eJmtK9a3F5pAHP/TSY+WyIm3nEfYX6rXFtfaVUfGSLZy0a4jnES4B5sVu1JKqlQ Y9eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wG25XutN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d18-20020adfe892000000b00203eb53b2dasi3215034wrm.244.2022.05.13.17.38.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:38:54 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wG25XutN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E42DC349904; Fri, 13 May 2022 16:29:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351082AbiELHi0 (ORCPT + 99 others); Thu, 12 May 2022 03:38:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351091AbiELHiU (ORCPT ); Thu, 12 May 2022 03:38:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 092F45C776; Thu, 12 May 2022 00:38:11 -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 ams.source.kernel.org (Postfix) with ESMTPS id 0BD7AB826F8; Thu, 12 May 2022 07:38:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27CF9C385B8; Thu, 12 May 2022 07:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652341088; bh=6wZHNd3Dwzsl3XeQvSPKHlk9BV48mA0w4uaiMM/qzUY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wG25XutNYJt8V/a7PqpdejLfX227ATdfzwdmSABzI3fIeMo2AVay7c/NXsz7YocQB qPNFM5hDb+5/X/ZaVI/G56+KuWnrBg6Cpnad7PbJ/LyHmhJ6PZL8bUZVEjheiXnAx2 8ajn6yBqNXsFK+GHaV0lt6tNO5C2C61MzkwR2pZY= Date: Thu, 12 May 2022 09:38:06 +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 v2] usb: dwc3: include extcon.h to fix compile error Message-ID: References: <20220511022622.168486-1-guanjing6@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220511022622.168486-1-guanjing6@huawei.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, May 11, 2022 at 10:26:22AM +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. > > Fixes: 0f0101719138 ("usb: dwc3: Don't switch OTG -> peripheral if extcon is present") > 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..e619a3ef6c46 100644 > --- a/drivers/usb/dwc3/core.c > +++ b/drivers/usb/dwc3/core.c > @@ -28,6 +28,7 @@ > #include > #include > #include > +#include > > #include > #include > -- > 2.17.1 > As Jack said, this will not fix a linker error. I think something else is wrong with your system as your .config file builds just fine for me. greg k-h