Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2834131rwp; Fri, 14 Jul 2023 12:05:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlHLnhm1GsaE+U8r1uillBTznwKUeCi2+Qkp2qXa0iYIk8vn6BM/xxIy8QqB2uVvNdtlcApo X-Received: by 2002:a05:6a00:2451:b0:682:4c9f:aa0 with SMTP id d17-20020a056a00245100b006824c9f0aa0mr6703046pfj.29.1689361531065; Fri, 14 Jul 2023 12:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689361531; cv=none; d=google.com; s=arc-20160816; b=mjuttzPFLNk6wXDXyiN+k17zlXH0zXxtPybwgIXYRQhztYard0jCi4vJbtx5LIJbL7 qJj6K4klpC94JVRug07D0vCJ+oELccqmRdQGG27dV3uLetgDn3enva3hByu7p6g0SyOc +XPuDYJdO+taEdL/Jceccf88J/4QRoZ8uBQKgo0cQiK0v82Ltd+RaWBWyDnwjodLcVy+ UtfiFBMU6Ux1wOJs0lRjmlRDhR4QbNIAy/4wy2qpZPAz+EtMBbMF1b2e4gO8rviLge3A FiJDS1P5pIe71o/uI/LvFeYukl4mY7m1mVu7sPql0ZMnH0/LZf+Ep5gV0XSKv+N4t5ah XdAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=8RjQtmQjVvZK/13OQ36pyd/MolLeUynfSW9vmUISG/k=; fh=K1i6AuvHUsbawCU5V6pMZKKXHiaG3m4Cg9N+N0UOTYw=; b=MpG2RoG22CHKMGKaGiow6R37Fthrtz9Nq6j1NA/d1LBurwV2g6sHzE9gepf1YboeJw M7nTKEXGqs/eHaZRzODWw2zBqhnfUj6k5M00+M2aiH6pAcfZgEJLHZTdlcAxHeSnvdjX ovRld/01PUiHID4Lk5SLWHdW5Nrg4nqPRxvslwXpnSxXvM6NPQhwqh91NTQKrQsIMzVG vaso1MDi0KrjKKq3EqSrXtHurcl60SQoKc791YV8jBfQDTxRvoJ/Im0pTkHou98TZ6sv yd5sY8BejOUAqp3XLhkaNV9BfsQidqYKvuK1Kf1DOuFtufELJ3aNWq1FvDej82yFCYs8 z1Cw== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k8-20020a056a00168800b006768627bc5asi7452019pfc.199.2023.07.14.12.05.19; Fri, 14 Jul 2023 12:05:31 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236625AbjGNSys convert rfc822-to-8bit (ORCPT + 99 others); Fri, 14 Jul 2023 14:54:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236511AbjGNSyr (ORCPT ); Fri, 14 Jul 2023 14:54:47 -0400 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6F3C358C; Fri, 14 Jul 2023 11:54:45 -0700 (PDT) Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-98e2865e2f2so59416366b.0; Fri, 14 Jul 2023 11:54:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689360884; x=1689965684; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f9Q+l2wgz1odf30ahJjWbv4V4PSTmin8e6j6JZq03ec=; b=SKg7evfguDwyDhIvgwwhQbP76mMPnK1cqne7g4nOcSl3qV4Z8mmOnfEyaDtg6aKBL1 BLQCX2ts+NoZj59S8IaxW2JpBVXTObjVxTpq8X207+qqrivCRcFhQ2lnioKsPKxmoYIk kHry3BgCJsS3+brn4TGRRKW143/wuVV4UphbZDqfK7IVIxMgeJcghumjHPIIrnKdtLSl UhyCasp2l4A4v/buBI3LdyWX/HjfhWa4wQipPvQtKgJ1hzzBY8XncOYCMiHPlVTg1oe9 N9BwSJUmk21qJMsVkWg1ZlxEIWET0zeg96OjygIUUW6K7CkABc0me01732T78KhJ00K3 xNvw== X-Gm-Message-State: ABy/qLaIBc5ii5+S+zBS5IfHQr1yzW7kdHRKqIbUCDZ/rk4eUlyb4Yah qgNqp4fehZQcFnRicjPzifCAB8z5hL9HndcY/rU= X-Received: by 2002:a17:906:64cb:b0:993:d54b:3e42 with SMTP id p11-20020a17090664cb00b00993d54b3e42mr40714ejn.5.1689360883937; Fri, 14 Jul 2023 11:54:43 -0700 (PDT) MIME-Version: 1.0 References: <20230714175008.4064592-1-robh@kernel.org> In-Reply-To: <20230714175008.4064592-1-robh@kernel.org> From: "Rafael J. Wysocki" Date: Fri, 14 Jul 2023 20:54:32 +0200 Message-ID: Subject: Re: [PATCH] thermal: Explicitly include correct DT includes To: Rob Herring Cc: Guillaume La Roque , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Florian Fainelli , Broadcom internal kernel review list , Markus Mayer , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Andy Gross , Bjorn Andersson , Konrad Dybcio , Thara Gopinath , =?UTF-8?Q?Niklas_S=C3=B6derlund?= , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Alim Akhtar , Orson Zhai , Baolin Wang , Chunyan Zhang , Maxime Coquelin , Alexandre Torgue , Vasily Khoruzhick , Yangtao Li , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Thierry Reding , Jonathan Hunter , Kunihiko Hayashi , Masami Hiramatsu , Matthias Brugger , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, Jul 14, 2023 at 7:51 PM 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 Acked-by: Rafael J. Wysocki or please let me know if you want me to pick this up. Thanks! > --- > drivers/thermal/amlogic_thermal.c | 2 -- > drivers/thermal/broadcom/bcm2711_thermal.c | 2 +- > drivers/thermal/broadcom/brcmstb_thermal.c | 2 +- > drivers/thermal/hisi_thermal.c | 2 +- > drivers/thermal/imx8mm_thermal.c | 1 - > drivers/thermal/imx_sc_thermal.c | 1 - > drivers/thermal/imx_thermal.c | 2 +- > drivers/thermal/k3_bandgap.c | 2 +- > drivers/thermal/k3_j72xx_bandgap.c | 2 +- > drivers/thermal/mediatek/auxadc_thermal.c | 1 - > drivers/thermal/mediatek/lvts_thermal.c | 2 +- > drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 1 - > drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 1 - > drivers/thermal/rcar_gen3_thermal.c | 2 +- > drivers/thermal/rcar_thermal.c | 2 +- > drivers/thermal/rzg2l_thermal.c | 2 +- > drivers/thermal/samsung/exynos_tmu.c | 2 +- > drivers/thermal/sprd_thermal.c | 2 +- > drivers/thermal/st/stm_thermal.c | 2 -- > drivers/thermal/sun8i_thermal.c | 2 +- > drivers/thermal/tegra/tegra30-tsensor.c | 2 +- > drivers/thermal/thermal_of.c | 3 +-- > drivers/thermal/uniphier_thermal.c | 1 - > 23 files changed, 15 insertions(+), 26 deletions(-) > > diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c > index 756b218880a7..81ebbf6de0de 100644 > --- a/drivers/thermal/amlogic_thermal.c > +++ b/drivers/thermal/amlogic_thermal.c > @@ -22,8 +22,6 @@ > #include > #include > #include > -#include > -#include > #include > #include > #include > diff --git a/drivers/thermal/broadcom/bcm2711_thermal.c b/drivers/thermal/broadcom/bcm2711_thermal.c > index c243a76a3471..03ac2d02e9d4 100644 > --- a/drivers/thermal/broadcom/bcm2711_thermal.c > +++ b/drivers/thermal/broadcom/bcm2711_thermal.c > @@ -15,8 +15,8 @@ > #include > #include > #include > +#include > #include > -#include > #include > #include > > diff --git a/drivers/thermal/broadcom/brcmstb_thermal.c b/drivers/thermal/broadcom/brcmstb_thermal.c > index 72d1dbe60b8f..0b73abdaa792 100644 > --- a/drivers/thermal/broadcom/brcmstb_thermal.c > +++ b/drivers/thermal/broadcom/brcmstb_thermal.c > @@ -17,8 +17,8 @@ > #include > #include > #include > +#include > #include > -#include > #include > > #define AVS_TMON_STATUS 0x00 > diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c > index 3f09ef8be41a..fb54ed4bf6f0 100644 > --- a/drivers/thermal/hisi_thermal.c > +++ b/drivers/thermal/hisi_thermal.c > @@ -13,9 +13,9 @@ > #include > #include > #include > +#include > #include > #include > -#include > #include > > #define HI6220_TEMP0_LAG (0x0) > diff --git a/drivers/thermal/imx8mm_thermal.c b/drivers/thermal/imx8mm_thermal.c > index d4b40869c7d7..e89b11b3f2b9 100644 > --- a/drivers/thermal/imx8mm_thermal.c > +++ b/drivers/thermal/imx8mm_thermal.c > @@ -12,7 +12,6 @@ > #include > #include > #include > -#include > #include > #include > #include > diff --git a/drivers/thermal/imx_sc_thermal.c b/drivers/thermal/imx_sc_thermal.c > index 8d6b4ef23746..7224f8d21db9 100644 > --- a/drivers/thermal/imx_sc_thermal.c > +++ b/drivers/thermal/imx_sc_thermal.c > @@ -8,7 +8,6 @@ > #include > #include > #include > -#include > #include > #include > #include > diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c > index a94ec0a0c9dd..826358cbe810 100644 > --- a/drivers/thermal/imx_thermal.c > +++ b/drivers/thermal/imx_thermal.c > @@ -11,7 +11,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include > diff --git a/drivers/thermal/k3_bandgap.c b/drivers/thermal/k3_bandgap.c > index 1c3e590157ec..68f59b3735d3 100644 > --- a/drivers/thermal/k3_bandgap.c > +++ b/drivers/thermal/k3_bandgap.c > @@ -11,7 +11,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include > diff --git a/drivers/thermal/k3_j72xx_bandgap.c b/drivers/thermal/k3_j72xx_bandgap.c > index 5be1f09eeb2c..a5a0fc9b9356 100644 > --- a/drivers/thermal/k3_j72xx_bandgap.c > +++ b/drivers/thermal/k3_j72xx_bandgap.c > @@ -10,10 +10,10 @@ > #include > #include > #include > +#include > #include > #include > #include > -#include > #include > #include > #include > diff --git a/drivers/thermal/mediatek/auxadc_thermal.c b/drivers/thermal/mediatek/auxadc_thermal.c > index f59d36de20a0..c537aed71017 100644 > --- a/drivers/thermal/mediatek/auxadc_thermal.c > +++ b/drivers/thermal/mediatek/auxadc_thermal.c > @@ -15,7 +15,6 @@ > #include > #include > #include > -#include > #include > #include > #include > diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c > index b693fac2d677..054c965ae5e1 100644 > --- a/drivers/thermal/mediatek/lvts_thermal.c > +++ b/drivers/thermal/mediatek/lvts_thermal.c > @@ -13,7 +13,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include > diff --git a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c > index 5ddc39b2be32..756ac6842ff9 100644 > --- a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c > +++ b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c > @@ -14,7 +14,6 @@ > #include > #include > #include > -#include > #include > #include > #include > diff --git a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c > index 0e8ebfcd84c5..78c5cfe6a0c0 100644 > --- a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c > +++ b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c > @@ -10,7 +10,6 @@ > #include > #include > #include > -#include > #include > #include > #include > diff --git a/drivers/thermal/rcar_gen3_thermal.c b/drivers/thermal/rcar_gen3_thermal.c > index 9029d01e029b..bd2fb8c2e968 100644 > --- a/drivers/thermal/rcar_gen3_thermal.c > +++ b/drivers/thermal/rcar_gen3_thermal.c > @@ -11,7 +11,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include > diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c > index b8571f7090aa..293f8dd9fe0a 100644 > --- a/drivers/thermal/rcar_thermal.c > +++ b/drivers/thermal/rcar_thermal.c > @@ -11,7 +11,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include > diff --git a/drivers/thermal/rzg2l_thermal.c b/drivers/thermal/rzg2l_thermal.c > index b56981f85306..6b2bf3426f52 100644 > --- a/drivers/thermal/rzg2l_thermal.c > +++ b/drivers/thermal/rzg2l_thermal.c > @@ -9,8 +9,8 @@ > #include > #include > #include > +#include > #include > -#include > #include > #include > #include > diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c > index 45e5c840d130..58f4d8f7a3fd 100644 > --- a/drivers/thermal/samsung/exynos_tmu.c > +++ b/drivers/thermal/samsung/exynos_tmu.c > @@ -15,7 +15,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include > diff --git a/drivers/thermal/sprd_thermal.c b/drivers/thermal/sprd_thermal.c > index 2fb90fdad76e..e27c4bdc8912 100644 > --- a/drivers/thermal/sprd_thermal.c > +++ b/drivers/thermal/sprd_thermal.c > @@ -6,7 +6,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include > diff --git a/drivers/thermal/st/stm_thermal.c b/drivers/thermal/st/stm_thermal.c > index 903fcf1763f1..142a7e5d12f4 100644 > --- a/drivers/thermal/st/stm_thermal.c > +++ b/drivers/thermal/st/stm_thermal.c > @@ -14,8 +14,6 @@ > #include > #include > #include > -#include > -#include > #include > #include > > diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c > index 195f3c5d0b38..cca16d632d9f 100644 > --- a/drivers/thermal/sun8i_thermal.c > +++ b/drivers/thermal/sun8i_thermal.c > @@ -14,7 +14,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include > diff --git a/drivers/thermal/tegra/tegra30-tsensor.c b/drivers/thermal/tegra/tegra30-tsensor.c > index c243e9d76d3c..d911fa60f100 100644 > --- a/drivers/thermal/tegra/tegra30-tsensor.c > +++ b/drivers/thermal/tegra/tegra30-tsensor.c > @@ -18,7 +18,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include > diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c > index 6fb14e521197..c36c7d235cba 100644 > --- a/drivers/thermal/thermal_of.c > +++ b/drivers/thermal/thermal_of.c > @@ -10,8 +10,7 @@ > > #include > #include > -#include > -#include > +#include > #include > #include > #include > diff --git a/drivers/thermal/uniphier_thermal.c b/drivers/thermal/uniphier_thermal.c > index aef6119cc004..6f32ab61d174 100644 > --- a/drivers/thermal/uniphier_thermal.c > +++ b/drivers/thermal/uniphier_thermal.c > @@ -12,7 +12,6 @@ > #include > #include > #include > -#include > #include > #include > #include > -- > 2.40.1 >