From nobody Sat Feb 7 13:41:47 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4391EB64DC for ; Mon, 17 Jul 2023 23:03:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231145AbjGQXD0 (ORCPT ); Mon, 17 Jul 2023 19:03:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbjGQXDX (ORCPT ); Mon, 17 Jul 2023 19:03:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E22EEE for ; Mon, 17 Jul 2023 16:02:43 -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 5DEC8612E4 for ; 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 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 =20 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" =20 static const char *const samv7_dt_board_compat[] __initconst =3D { "atmel,samv7", --=20 2.40.1