From patchwork Mon Jul 24 21:19:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13325349 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C16411193 for ; Mon, 24 Jul 2023 21:19:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B491C433C7; Mon, 24 Jul 2023 21:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690233553; bh=Kj3XfjZcezJ9YNhnOjElUCHift7/ySxvviPokSxuUfw=; h=From:To:Cc:Subject:Date:From; b=N20CdsGLjqTiQ1aVBymIuJeFt3sAkR8Xs1S7Xrei7URkWIFKMPxKhvZ7JzBAY/tZ6 qeTGRI23GVQlJFw1i/SX6IMCz6HlvbNT4Q9ktfo82y4YZRKyIZm7Iz5GBX2naAD0La qhqGFY8QH33p0o4SGOfIRjTR5tUrDGDLgjopTQ44GGbgm+Nb8P/GSwNyCwKtR1YAi+ lrDqOHcF6gCnWmjZR66gSRQlh3rrdfLvOzOqozasSXt7W3z6DbqQa8H4kqld8Vcmjy 1EAvGj1phm/OfwT+nNWqHbtxEHMUq5UvGv9dZecMisg1azwXg1WCKoqPgkmDGHaCeu BXxlaySrNaymg== Received: (nullmailer pid 805831 invoked by uid 1000); Mon, 24 Jul 2023 21:19:11 -0000 From: Rob Herring To: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Daniel Golle , Qingfang Deng , SkyLake Huang , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2] net: phy/pcs: Explicitly include correct DT includes Date: Mon, 24 Jul 2023 15:19:05 -0600 Message-Id: <20230724211905.805665-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org 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 Reviewed-by: Simon Horman --- v2: - Split out can, dsa, wireless, phy/pcs to separate patches --- drivers/net/pcs/pcs-rzn1-miic.c | 1 + drivers/net/phy/marvell-88x2222.c | 1 - drivers/net/phy/mediatek-ge-soc.c | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/pcs/pcs-rzn1-miic.c b/drivers/net/pcs/pcs-rzn1-miic.c index 323bec5e57f8..e5d642c67a2c 100644 --- a/drivers/net/pcs/pcs-rzn1-miic.c +++ b/drivers/net/pcs/pcs-rzn1-miic.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include diff --git a/drivers/net/phy/marvell-88x2222.c b/drivers/net/phy/marvell-88x2222.c index f83cae64585d..e3aa30dad2e6 100644 --- a/drivers/net/phy/marvell-88x2222.c +++ b/drivers/net/phy/marvell-88x2222.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/net/phy/mediatek-ge-soc.c b/drivers/net/phy/mediatek-ge-soc.c index 95369171a7ba..da512fab0eb0 100644 --- a/drivers/net/phy/mediatek-ge-soc.c +++ b/drivers/net/phy/mediatek-ge-soc.c @@ -2,8 +2,6 @@ #include #include #include -#include -#include #include #include