From patchwork Mon Jul 17 22:54:29 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: 13318157 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BC0ACC0015E for ; Wed, 19 Jul 2023 05:20:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=5boE+kyc9V/XANrLqK6L4ugq7zkqEIUgBZL8T6JIDXw=; b=yC2YST3xhJ2HIN UYt12eggcSJ3VF4PK27T0jFTnLBOL8UEPB8XdqS9mu/yq33pfEF5F19vOHyg/CKvHWSpZxT5mjrX9 1SWVdQTmfBPiA3QJHgKUh7LM2M5yBM38ytEgXLSIkgsZVoCBPpoNOmwarV9QAJym2LI0oxrAQDW/C QHD3QSLMk9CPndxkvU2F7ExgRnkXu1umdOp7/OQrqUvenUckx74oieaXfJhFp1e10gztiI/ajxLSL UEjGgZc4ksQT+YH0bW1UfcftmaOPFEF+Zw6KyVY0aaElF4yu5pnxUwd03ELlN8dy1+yUjESTYceEw QPNloAch+1+eF58iwE9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qLzbI-005DiL-0I; Wed, 19 Jul 2023 05:19:48 +0000 Received: from casper.infradead.org ([90.155.50.34]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLzbG-005Dg5-0P for linux-arm-kernel@bombadil.infradead.org; Wed, 19 Jul 2023 05:19:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=VK4wgBKZd31G2+p7CqHvUQCrHEibpQ1qKihRNfHzNXk=; b=mZy5yySYstyoxi4f7ZpGYnF9qP 9dMvK69Chur2JRnoMwDOUlfpzqWm/2g/9tBqNXo12ZKboLAQh9eVW4AvATL06TekIeyjUo1m0LDtY OmNiC/zsiscaHZU+1kh2w3htbHPOnc+l1WC56LGBaWsTID126c4xfqR4JpxBYYufFqOM6PXVYIn+G Ak1SPSJMGHqXGUv0i/tVWXX0BKkyG2VKPNBI9aZh2HnNyGxmj8rHbX0G9+qNnFLLPWLon/GjWdD7n psPIT6uYbWsRh7qEXF+E1LUBf92C54tiLibFXZGbVcm0mh330v7nSexCq9WgSvLiJq56JgroyMD6t v1R7JxTQ==; Received: from dfw.source.kernel.org ([139.178.84.217]) by casper.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1qLXHE-004KtY-Bv for linux-arm-kernel@lists.infradead.org; Mon, 17 Jul 2023 23:05:14 +0000 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 5DEF46130F; Mon, 17 Jul 2023 23:01:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8817DC433C8; Mon, 17 Jul 2023 23:01:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689634863; bh=suv5VAz59+JZPS+l5l8BcnOeZ3LJcgqq1/II6LQnwsw=; h=From:To:Cc:Subject:Date:From; b=B2mkXxHJPfmBrM5xpW8xGE5vtbVAK5lwyDPxwKA8Q/D5Ff3bwzU2OYWnOqatp+fS8 Fd3cWLeAFgHpdULnyCoIUbjU9L5PD4zIT9MwuvQeJ9Nq+64ve5im11ZThSNqJrkzt1 qlCTur7ZP2+/K/jh6hkbUDI4C7+giyvoUC5aUAdNZ96lecHOraU+L46vL53BPKcU6N eYTlQeydpyIZgvG4a2RSeT4wl/tKS+kQnhQM5/UVpJmY2QqDqYgW3qjNSFc1LHHBFN 3eqlqFWhCZ/nKGt3Jlfd4sz+RmIitbiEXTSOKazgR+NLRdmU+eytQq/AvsIHrY5pDP flvVeLeIAxCrw== Received: (nullmailer pid 3211508 invoked by uid 1000); Mon, 17 Jul 2023 22:54:37 -0000 From: Rob Herring To: Russell King , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: at91: Explicitly include correct DT includes Date: Mon, 17 Jul 2023 16:54:29 -0600 Message-Id: <20230717225429.3211307-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230718_000512_531778_4BAB5AA1 X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was 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. A couple of other includes are unused and can be dropped too. Signed-off-by: Rob Herring --- arch/arm/mach-at91/pm.c | 1 + arch/arm/mach-at91/samv7.c | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 437dd0352fd4..1a26af0fabc7 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include diff --git a/arch/arm/mach-at91/samv7.c b/arch/arm/mach-at91/samv7.c index 28f998f0fba5..22d00005ec09 100644 --- a/arch/arm/mach-at91/samv7.c +++ b/arch/arm/mach-at91/samv7.c @@ -5,14 +5,7 @@ * Copyright (C) 2013 Atmel, * 2016 Andras Szemzo */ -#include -#include -#include -#include #include -#include -#include -#include "generic.h" static const char *const samv7_dt_board_compat[] __initconst = { "atmel,samv7",