From patchwork Fri Jul 14 17:40:20 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: 13313884 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 92975C0015E for ; Fri, 14 Jul 2023 17:40:58 +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=A3Zy/o0fZahBkXOeZR+p6Qep+TeQteZzsVsrtHeu/94=; b=OIfX3uvdZmQkRK P7FRk9EbCJJM0fToNhv8x2+gjeZRrqd0uPGcD1Y3JjhOKOScQn31/yx5YgYvM1q5ieNtTS/iNPI23 sIKeuCZrpdwp+6/2O1TswbA6JxL/JG5CXKfsZKOp3WAQPVsXEU/gpBiBp9CnBTME6laxWLjzBq3i0 PdVAPQzm2cYsKx3qPF/x8Omn09bfyol3de24WsI2bFH428xLWWG2vXPOq4AOKeAGHLPzU6bjBdReZ C2wrwzItka+gUchs2qYbJhwZs+os5GQ2zTKj87MuLH3YNPSpNPBjF3Uc/T770eHLEQ8cJcUweovcz 3kVrJE8mnx1U4y/z3YLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qKMmN-006mAP-0N; Fri, 14 Jul 2023 17:40:31 +0000 Received: from mail-io1-f53.google.com ([209.85.166.53]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qKMmJ-006m93-1D for linux-arm-kernel@lists.infradead.org; Fri, 14 Jul 2023 17:40:28 +0000 Received: by mail-io1-f53.google.com with SMTP id ca18e2360f4ac-7869bcee569so86183439f.0 for ; Fri, 14 Jul 2023 10:40:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689356425; x=1691948425; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Kb4dR+z+OTgQHnETYo6UxSYgXlKF4+KcDIOkEstmL88=; b=RXhg81Vxnyg9ac91LHGJAqDY0qRqJW7Op37+xPqE2f1chgxRKDlj3PNZ/9dmFadesp wD3IGAEAQhQAGS2qYfGHVIqa0nr2nOeRvVGygm0Zw+KRq31R6AZdng3sHZeRNN1NcK0u PdwbPGEZgxBwTjWCTTECGCB/5vEW/0J69D6qMwa01zhDg7W74YMv6OezmCrm4ukBB1cf rAFl1GIzT5+XlMuJLkzwR6FMgqJ+KYckCTNSDT7Fh/y6YS2b5XubCvocZwL2NZMnIrMe euAnSGtC8RxG5NU4gO5XduhXgvqF8WvwHsRPWRnG+DTlDb3xIkVK4VCd7Yk/E/TygTnH NS1Q== X-Gm-Message-State: ABy/qLYnzZs6Y/1UgXb0tA6eQzjDEwMKbH4yQFHJDNzz1jVNFKh5t0x1 irgMoyVahMpGMfYmdZJAaQ== X-Google-Smtp-Source: APBJJlEBL3vIYFO5LMg3/N8C4xffY/g7NVOhko+tf5h+Zi20xBg5HDeMdJ4KgecQvDnjn4wWMSFFdQ== X-Received: by 2002:a6b:3c03:0:b0:783:7275:9c47 with SMTP id k3-20020a6b3c03000000b0078372759c47mr4957903iob.7.1689356425225; Fri, 14 Jul 2023 10:40:25 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id x11-20020a02ac8b000000b0042bb13cb80fsm2741577jan.120.2023.07.14.10.40.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:40:24 -0700 (PDT) Received: (nullmailer pid 4039894 invoked by uid 1000); Fri, 14 Jul 2023 17:40:23 -0000 From: Rob Herring To: Catalin Marinas , Will Deacon Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:40:20 -0600 Message-Id: <20230714174021.4039807-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-20230714_104027_416113_3D83C916 X-CRM114-Status: GOOD ( 11.41 ) 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 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 --- arch/arm64/kernel/cpuidle.c | 2 -- arch/arm64/kernel/pci.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/arch/arm64/kernel/cpuidle.c b/arch/arm64/kernel/cpuidle.c index d1f68599c29f..f372295207fb 100644 --- a/arch/arm64/kernel/cpuidle.c +++ b/arch/arm64/kernel/cpuidle.c @@ -9,8 +9,6 @@ #include #include #include -#include -#include #include #ifdef CONFIG_ACPI_PROCESSOR_IDLE diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c index 2276689b5411..f872c57e9909 100644 --- a/arch/arm64/kernel/pci.c +++ b/arch/arm64/kernel/pci.c @@ -11,8 +11,6 @@ #include #include #include -#include -#include #include #include #include