Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5771804iob; Tue, 10 May 2022 03:24:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIPyF/2ABFajAWmG8ZgBQsqI71JdKc4L3+MpGeDHdPzd6s6R1ONn4TAZdMnZ4/lFSb5PfQ X-Received: by 2002:aa7:c6c3:0:b0:425:b13b:94f with SMTP id b3-20020aa7c6c3000000b00425b13b094fmr22214219eds.313.1652178266443; Tue, 10 May 2022 03:24:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652178266; cv=none; d=google.com; s=arc-20160816; b=Ku8/ioStDFZcFPnedNGazg1D2uIOXpGiGICO8GFA6tylgQ+z3E70XS40VJ4PD04xGe JAAorb+snAtlfDS+YgobiSaPEiShQQnNYuHL4PGP0wPp3yGorbnIyMlJ26l8E/1Lp55H WmajSv15slCuIdDyKU8dCpWN5qqQPSR52/He82K+7ONDsqXkcnthjT+KnSDT/5qPa6/0 Vc7q6kJ26JoC8I/SzVPukD4RKAE2sqJLSXnRFdBZS3p3I/4ISbII+CWFXCOtIJFvH25Z 8FWrkazXIP6lw4GJoHcYWUeUBDuCQ8PKoKX/QH7kJI7fKxeOIvXmsdPgkWcFztA9e9AW a+xA== 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=F2gA8j29YBYyP7uxVT9CquB0EZt+Beb1tOnWK2hjXhI=; b=LRqecAMiY8j/+vuS0irsOLJdPclpgeYiaGUq4ohwluZgYWxv7MgL0aGUbbPE4W3rXH ohVPSCqZBGKbGEg5yYE43Swvg9MEG3d1am8JuWHqhXTKFv1sqHHY2zy/OTtcTdeYTsCK 3AyyzWs0zvc3ENQjVDVIJDaiKXO1UuViiSSRHMk/8fuxF12bQflOdiPhcYHIvJPSbwHw bO3Hq5NwEwrznS0TKt2oz6oWC59gtX1gJh1v4/oRwqP70W7ddn8IE+R3KakoGkGry30g wlJzS7asBJ4Ac/JdLQv2UVLzlLZehWbNelYzWQyz4dqeP3yQve/17dJ9M+zYcRCFawxZ 9ExQ== 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 y9-20020a1709060bc900b006e89b3bba41si15307151ejg.999.2022.05.10.03.24.00; Tue, 10 May 2022 03:24:26 -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 S237873AbiEJI1I (ORCPT + 99 others); Tue, 10 May 2022 04:27:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237867AbiEJI1B (ORCPT ); Tue, 10 May 2022 04:27:01 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9702F291E5E; Tue, 10 May 2022 01:22:52 -0700 (PDT) Received: from kwepemi100014.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Ky9xx0p2vzhZ2L; Tue, 10 May 2022 16:22:13 +0800 (CST) Received: from kwepemm600012.china.huawei.com (7.193.23.74) by kwepemi100014.china.huawei.com (7.221.188.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 10 May 2022 16:22:50 +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; Tue, 10 May 2022 16:22:50 +0800 From: Guan Jing To: , CC: , , Guan Jing Subject: [PATCH -next] usb: dwc3: include extcon.h to fix compile error Date: Tue, 10 May 2022 16:20:29 +0800 Message-ID: <20220510082029.197841-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. 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