Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5657131rwp; Mon, 17 Jul 2023 07:36:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlHBARs/SAhHDVoDdoDEsF92bEnMp8Ybvr7Nnwbibkz/u7xhsVKq8gWKptRJwgIVQalRZN1r X-Received: by 2002:a05:6a00:234a:b0:668:7325:e184 with SMTP id j10-20020a056a00234a00b006687325e184mr16474525pfj.16.1689604578161; Mon, 17 Jul 2023 07:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689604578; cv=none; d=google.com; s=arc-20160816; b=VJAXVqfwJkqiJu8qsIW0kdj2cPCTgsFXeiLJQ8huB4KfnXtlcH73dklX/FibFXf07i vjEmm1u5Ri5k5580l54h9OFVADDQOBTOuCTEDxsh29ilKcfVJonT5ECBQU9+gOh4R2vK /YXXJTB1z86KczGpRgFg9s97p81zV6njpWwSsPsfLq+NtTvfg3km6sjTpk4QK98eLegv 6cVVcUeKjJJpvIbH/X9wkFS8Gvlj9HHs54g/6cdrDwql3j5RPeZ5lT0wOQSBd2TLY9Ru Cvowo1dl9l224NydZ7/Pmkk/lExLGDzCCxVApPdL1zDBhuePQF4+Wo2NwJvnLpvSXu9P ZPlA== 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 :dkim-signature; bh=/W1ouQd9uqe32otzUNOQftzEACtHdO7JVhTsT6OP+Qs=; fh=vvND8sGnxyLjnhGz3MmL0GGztJNITEuqzZhvWN2g1tc=; b=UMeAKmLINLoF22rmonAFL5thwcG2smjMvvO1YERsWiEzqkBG7BTQ8rETEoGwnqGlov gDBVyObc5P7zBkWypDUSCeUkTLvlCYomW+OPCMEt1UEHbDWUMfOiCbcMw0h4FHe+NcV7 ZmbVB83jRyaR0Lxummld6fawZD9JgZRWSUFc8CvQCgcdFT3BiK62e1XqIdpccD9mVjm4 a9rzUec7vWyxwsOzJZ9C2aHb5y5IaqEBplEXjxldxaet5ARhXwb2LfgHn0ym4aeL9tpU F0TlbEETP1f7vTNAfLhtUgVWVc0Un/rWSf45nbnyZJgtG5E7Rz7ph8GOZBLPfJejgb0n tZiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tbqM5G1B; 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 fc11-20020a056a002e0b00b006786b7f4cc6si11982066pfb.296.2023.07.17.07.36.05; Mon, 17 Jul 2023 07:36:18 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tbqM5G1B; 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 S231146AbjGQO1t (ORCPT + 99 others); Mon, 17 Jul 2023 10:27:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbjGQO1s (ORCPT ); Mon, 17 Jul 2023 10:27:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 048DEC0; Mon, 17 Jul 2023 07:27:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7F081610A5; Mon, 17 Jul 2023 14:27:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE66CC433BC; Mon, 17 Jul 2023 14:27:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689604065; bh=rkLKjJGA9W9V1hgJstWBCmZrxpmjuvUsbHV5ieMMp8c=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=tbqM5G1Bre2zBYNYlSaGpYvtGMUIHymVMKeK/TzG0KjBzCmaAHwEaXmM+fnWr8QHf A5IwGR12akMgYWcxzwUULBkB0mekTRl4kMKQRSfx+pzkXO2wU5OR+OPuWWdNpyb/9Y 27H/XVZnsbuLv2tvpMFxcyKcBrfhw24Ct3Dtn6k2jIwf9fiUxfMZRE5qGgbeygcQZ2 vy5S/pTq31758S5Um6WTDPfgsWL212q22eKGrybewvdX7t97Q3XcLfmDw1+8j8e8ow KnsnOeGJcjyYNIZVOv3JTTaB9YED46K0NRnfA2+aAkAVdCs2rPfSquk+go0eGVrLFe 3iKfcFajgoGdg== Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-3128fcd58f3so4906778f8f.1; Mon, 17 Jul 2023 07:27:45 -0700 (PDT) X-Gm-Message-State: ABy/qLZghUs7lncWXZM1dChUiBvE2K96n+Y7rN059Pv2fwxl6iHVk14T 6ODXg/fvJP4CsTxsqg2NjYnOS2p4QPrexgZRBA== X-Received: by 2002:a2e:8945:0:b0:2b9:48f1:b195 with SMTP id b5-20020a2e8945000000b002b948f1b195mr576527ljk.44.1689604043579; Mon, 17 Jul 2023 07:27:23 -0700 (PDT) MIME-Version: 1.0 References: <20230714174545.4056287-1-robh@kernel.org> <114500369.nniJfEyVGO@phil> In-Reply-To: <114500369.nniJfEyVGO@phil> From: Rob Herring Date: Mon, 17 Jul 2023 08:27:10 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm: Explicitly include correct DT includes To: Heiko Stuebner Cc: Liviu Dudau , David Airlie , Daniel Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Jagan Teki , Liu Ying , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Inki Dae , Marek Szyprowski , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Lucas Stach , Russell King , Christian Gmeiner , Seung-Woo Kim , Kyungmin Park , Krzysztof Kozlowski , Alim Akhtar , Xinliang Liu , Tian Tao , Xinwei Kong , Sumit Semwal , Yongqin Liu , John Stultz , Laurentiu Palcu , Paul Cercueil , Qiang Yu , Paul Kocialkowski , Linus Walleij , Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , AngeloGioacchino Del Regno , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , Marek Vasut , Stefan Agner , Sam Ravnborg , Jerry Han , Icenowy Zheng , Ondrej Jirman , Javier Martinez Canillas , =?UTF-8?Q?Guido_G=C3=BCnther?= , Purism Kernel Team , Jianhua Lu , Florian Fainelli , Broadcom internal kernel review list , Artur Weber , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , Emma Anholt , Kieran Bingham , Sandy Huang , Orson Zhai , Baolin Wang , Chunyan Zhang , Alain Volmat , Yannick Fertre , Raphael Gallais-Pou , Philippe Cornu , Maxime Coquelin , Alexandre Torgue , Chen-Yu Tsai , Samuel Holland , Thierry Reding , Mikko Perttunen , Jonathan Hunter , Jyri Sarha , Tomi Valkeinen , Oleksandr Andrushchenko , devicetree@vger.kernel.org, Ondrej Jirman , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, etnaviv@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, linux-mips@vger.kernel.org, lima@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-rpi-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, xen-devel@lists.xenproject.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Sun, Jul 16, 2023 at 3:26=E2=80=AFAM Heiko Stuebner wr= ote: > > Am Freitag, 14. Juli 2023, 19:45:34 CEST schrieb Rob Herring: > > 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 includ= e > > 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 > > --- > > [...] > > > diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/= gpu/drm/rockchip/dw-mipi-dsi-rockchip.c > > index 917e79951aac..2744d8f4a6fa 100644 > > --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c > > +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c > > @@ -12,7 +12,9 @@ > > #include > > #include > > #include > > +#include > > #include > > +#include > > #include > > #include > > I'm not sure if I'm just misreading something, but in all other places > of_device.h gets removed while here is stays as an include. Is this > correct this way? Yes, because of_match_device() is used. Rob