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 X-Patchwork-Id: 121636 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1398182vqt; Mon, 17 Jul 2023 16:15:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlGcI/1YDRE6ibl7BjtqRpYpwUILCtVQp6/aiPRxNTMo0nzodpEgwXThZN6iaoe/a9Rg5ee0 X-Received: by 2002:a17:906:7a0b:b0:994:4ebe:7a6d with SMTP id d11-20020a1709067a0b00b009944ebe7a6dmr10617456ejo.19.1689635744595; Mon, 17 Jul 2023 16:15:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689635744; cv=none; d=google.com; s=arc-20160816; b=wLTIF9eD1PRvJ4jtzNZ6rAHh3XvMNOG4nNVIJ25fFR+i1T9b4TV92kCuxiaESkhgtl O8QLP75gvz5OgxzpknVMXPYif1HbWpN6PToY0HKbziI05+hOlXyNnxbBW1K3JL0Rwb3W 0v/7su5y95gmrSABQr+xwe/VVS9kq5oIOegFLo/AEBRNjon7N8msftK5ZSWxi8PsYYK3 Eo07jPNOT4nd/eiIZ2HDmq1wLGKWW7u03Ktz3gsRrkNZByeIchhbL5bsiYcaecwn2iHD 6Y7/XmWd7oPK1MTdkflFhCPfXc4NhSlHB4I2JA1zBbS9wHFbYkTW/Kix3YOngifvpyYM sEhw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d23-20020a1709063ed700b0098874379199si313111ejj.163.2023.07.17.16.15.20; Mon, 17 Jul 2023 16:15:44 -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 S231143AbjGQXDZ (ORCPT + 99 others); Mon, 17 Jul 2023 19:03:25 -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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771711490175461222 X-GMAIL-MSGID: 1771711490175461222 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",