Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9153928rwp; Wed, 19 Jul 2023 23:50:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlElRYIozzBDC0uz86iRwd8gqaQTsdAlct99mESrIAqf5tdAPMx4/DsEdnvLMyKM6t1bc5cB X-Received: by 2002:a05:6358:8813:b0:135:89d6:22f1 with SMTP id hv19-20020a056358881300b0013589d622f1mr5602781rwb.21.1689835845715; Wed, 19 Jul 2023 23:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689835845; cv=none; d=google.com; s=arc-20160816; b=N6F9zwaq4q4gcZk1UPlaMQoYiun0p3ytzi4GSmbOwOS/IKIFCvBG3dj6JqHMYcAxx4 Vxjl3hm9P5Yych3/j9ePequ7LdOG61hjR7ox4DnkDd0uUmFfLXfuB1ss8LYjCuhvkRe/ Qt36rKB+CsN1XErpcl4r9MSDV9+DzjsTpMuqjiJUft44YsHYutWSzB+kVTyk2tvfxJ48 OVjhao9yIgzY1TmpsdQXKWA1Q+dQWlBq/h8jo2N3ji0uuQzMraSvFCO9TEUcTmgqvsRY neu2xc6v1JciTzPShxMYmGOijlMW5bR6mo1K7P47g1ahprTdvt3cHja7NjC5WJJgSGzy iIrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=chrODdXAIv6YEH6whEi21KXotSfUL4Ah7QvXj0d7PhA=; fh=Jus8GrX5NOAHPY2cxvJ1n0mY95dFk+XODUFkS8e2qr8=; b=krR1dR05Iea4yHJ2C8pYHNPguCjZTAhd++Re6VD1H1wQRNWcKYjTKB+o1zvpG8/eos DMc6aAADkuOHf4UfJgmy2MNAwHnW9HZwNCrwf0TcR6b1N5cAIcDtJx/fbfnhbaEpxy63 G3kPjOIvUJFFDAf/vNhUxaW22aqLf2ri3QIooWowhOTTkivTW9iJodgCYd+cSKEXnDwd aSudVoWlQ1QDpVc83NzFHsuoAfFQ9ywkoBRyNuJ0LgNyCz3zGN+C1wCyeiCdA3xIWxzB mz+yqUvfMMkt4MO0UbBG4FzKMAEdd7oWWYxN7a2H6Z9MNIYISIcUF32bXdNihAyseHkx Sjxw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b19-20020a656693000000b0055392732f62si209074pgw.495.2023.07.19.23.50.33; Wed, 19 Jul 2023 23:50:45 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbjGTGNI (ORCPT + 99 others); Thu, 20 Jul 2023 02:13:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbjGTGNG (ORCPT ); Thu, 20 Jul 2023 02:13:06 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A10119B2; Wed, 19 Jul 2023 23:12:54 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 7716C24E335; Thu, 20 Jul 2023 14:12:52 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 20 Jul 2023 14:12:52 +0800 Received: from [192.168.125.113] (113.72.147.86) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 20 Jul 2023 14:12:52 +0800 Message-ID: <6d503477-82eb-c201-129a-009bcde485d0@starfivetech.com> Date: Thu, 20 Jul 2023 14:12:51 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] soc: starfive: Explicitly include correct DT includes To: Rob Herring , Conor Dooley CC: , References: <20230714175149.4068174-1-robh@kernel.org> Content-Language: en-US From: Walker Chen In-Reply-To: <20230714175149.4068174-1-robh@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [113.72.147.86] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,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 On 2023/7/15 1:51, Rob Herring wrote: > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it as merged into the regular platform bus. > As part of that merge prepping Arm DT support 13 years ago, they > "temporarily" include each other. They also include platform_device.h > and of.h. As a result, there's a pretty much random mix of those include > files used throughout the tree. In order to detangle these headers and > replace the implicit includes with struct declarations, users need to > explicitly include the correct includes. > > Signed-off-by: Rob Herring > --- > drivers/soc/starfive/jh71xx_pmu.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/soc/starfive/jh71xx_pmu.c b/drivers/soc/starfive/jh71xx_pmu.c > index 7d5f50d71c0d..d3b78a619d40 100644 > --- a/drivers/soc/starfive/jh71xx_pmu.c > +++ b/drivers/soc/starfive/jh71xx_pmu.c > @@ -10,7 +10,6 @@ > #include > #include > #include > -#include > #include > #include > #include Nice! Thank you for your careful discovery, this helps simplify the code. Best regards, Walker