Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6677889iob; Wed, 11 May 2022 02:59:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx91XoXQbvG5YYeILTnplq24ny9bvyUAifWBe2Gng7mdqW9zcThrXZpPv1jJEPaGUmvBzpr X-Received: by 2002:a62:d155:0:b0:50d:3c4e:37ec with SMTP id t21-20020a62d155000000b0050d3c4e37ecmr24356382pfl.60.1652263164368; Wed, 11 May 2022 02:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652263164; cv=none; d=google.com; s=arc-20160816; b=M6z5amVIki2OCoLtFCSkJiNc5mjeOFQvi7gM8YyqOFU03EescxFibURSgAaUCWHjMF R87d680nnYQclsTzEbW5eR/+cAgheV00TamtgyAyKu3V29nq6NU9UL0U9BORb85VP2DO PAv0cUGTat2nlcEnM+iPwKz71dLxVRy6uMf6n5iEli5LE3ycoU8wcvs6ssaCl9Lqpv7W iFy1s3M+hhMDGQIHrDmRVCQq9vvYK0alKoDQjg65weYh7ixcOy5pdppUdOGgZnT846Ai pSyW+jdGQddSZJIv/k2SoJdDhZ6TWUpVlDU014BrFQp2T4xRwdhdDFJtHH/oOPf7OuVJ /DWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=qtXt8L7K4wBQFgZWos96NbteCtJPAMHZR53J++dtwr4=; b=nLBlvpvwLQDCk+5mKdhTLTM262qDude5VCrwIlIv1Fqgn3IiecFN4+kxijFuq8/5vu yYZ78neE1IfBLhaapWnSm0NA6TkjSDm0/OO45A514AdyPE+YNL+x80SqHQZ5PEQSnwDF yJFTQCTU6EoBZzSOEDtQ6huaCzKXisqgsuOz/bIb7nMpweEYZH9AgNZiecKXyMFwMcCB 5gp8ZHqbt2cLlHpu8f6rox4zck4Yi+Hfj4am/NEq/dlR12zZMz29+a41TOxxtUnQ644Q vLMHElZWz+ryGxljHiQvA4iaQ2vDpDqKQl+T9I+M8Y8RQZS47brHIUNdfagvaxj1tadx weGg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t24-20020a056a00139800b0050d56648bf0si2161666pfg.66.2022.05.11.02.59.13; Wed, 11 May 2022 02:59:24 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241155AbiEKC2B (ORCPT + 99 others); Tue, 10 May 2022 22:28:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239947AbiEKC16 (ORCPT ); Tue, 10 May 2022 22:27:58 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 453C03056D; Tue, 10 May 2022 19:27:55 -0700 (PDT) Received: from kwepemi500004.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KydzP1RpqzGpYV; Wed, 11 May 2022 10:25:05 +0800 (CST) Received: from kwepemm600012.china.huawei.com (7.193.23.74) by kwepemi500004.china.huawei.com (7.221.188.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 11 May 2022 10:27:53 +0800 Received: from ubuntu1804.huawei.com (10.67.175.29) by kwepemm600012.china.huawei.com (7.193.23.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 11 May 2022 10:27:53 +0800 From: Guan Jing To: , CC: , , Guan Jing Subject: [PATCH -next v2] usb: dwc3: include extcon.h to fix compile error Date: Wed, 11 May 2022 10:26:22 +0800 Message-ID: <20220511022622.168486-1-guanjing6@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.175.29] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600012.china.huawei.com (7.193.23.74) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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