Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6176055rwp; Mon, 17 Jul 2023 16:45:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlFDX8WgP7DTA7w1Zp/x7UFUyy8UZ3VsKhxf+xVEJScP80eO4+yjWuZWGXqnXotuill7pXvw X-Received: by 2002:a17:902:8d94:b0:1b8:94e9:e7cb with SMTP id v20-20020a1709028d9400b001b894e9e7cbmr10848304plo.21.1689637532242; Mon, 17 Jul 2023 16:45:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689637532; cv=none; d=google.com; s=arc-20160816; b=EMoRGg9zs8zR0wBTtDoNVOc/KsJFh0DN3kJVm9lVhU518HHG5ZnJDuJ/vdud3DRyia J/XVFCFNHh2EPpBKi/HR/+3CJ97KhtPTfuXiny9G0sXtqpoQVpozzcwYnQ7h5zJHNZuT J7Nohgg3bdVSnoPv9PmGiA7D6zDz03UZ6TfhXfu9mwrxZ8ibktBcUHQlFSjZJly80Jfm QxGOd8nrjxVSs4Vt4vjZ2w1CcrQVFX2BMXHZ81iy19AOsatBVFsbt1d3fxTRWnscSRQX b4Bd2if5cXQ9SKnCLyl5weSrsYfYyyyKrSd176xQ+ogZ4ooK/EkNhhOKyrWN5S1e8PUg C1Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VK4wgBKZd31G2+p7CqHvUQCrHEibpQ1qKihRNfHzNXk=; fh=4/yi+2XVbTv3yDEJSxCg7HkrDMVoI9phMEGXGM+9e+k=; b=s4uGHxzHIJ8+YakRmN2aQt8RF+La1vB0e9QzJizQOyAY9FbJxjXaGJV/s5J1ffSv3o usTobjx9KWNUUgoXWCK3XG+L7xSQEhFSjq4Elw2CWWMlM0BKGpX2PYP51T4gGsXFkj7V o+22dr3YODNw2KU+BJ0LI8K4Ps2RW5Bw0yCcW8e0fspq3HUyWXXe0wJq33ugL8xbwL5n vZ3BMz195gna6TY2Vc4YJacZVPzoc++wNWfPiaFnDbZG2djfpsofJyEP4in1psMN0vs9 40RJ/Xv6kOvYneCABEDXn2nFFoHxuMZqqNM3qO0LKTM1Z1y8QmLwgtAjsM2HTTGbHodc QJpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B2mkXxHJ; 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 q8-20020a170902a3c800b001b222cd9826si589827plb.349.2023.07.17.16.45.20; Mon, 17 Jul 2023 16:45:32 -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=B2mkXxHJ; 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 S230100AbjGQXDY (ORCPT + 99 others); Mon, 17 Jul 2023 19:03:24 -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: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 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", -- 2.40.1