From patchwork Fri Jul 14 17:44:34 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: 13313929 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 7194EC04FDF for ; Fri, 14 Jul 2023 17:45:14 +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=TZiXjQYQ23cZDRbasTrI/ccCQTwKe2NJAknXWEKe8Ng=; b=JqghJd/IGrilb6 7v698ja/kwVUYuUDE0IB8zrBThxG9412sEJiphxtCsZowN7MwEsjeTtcS+tyJVS2E6XyqQO5Yw3Dn krZVqVrUBWqMFPOpht3ROIyt9GO6gBeXAEjk8h1l1A6oiZP02FVfunBtbCrsqVRukCWpWbrhJudNb TGCFQOC1AMFEGrOc0q484mbd+cFYUWhbXz6Vxh1FiL7RZVf19HVCZD5aCbtMlYjactzEliFAJYf4l m/iUk8T0xlvi2bpiu3blSElH91F8YHzdm2OIM95RN0cV1GMMkQO+sOMLzxp6nOTPEoFC86kqrXVGS Wp5BKWd95JbcPMphlRRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qKMqX-006nRS-08; Fri, 14 Jul 2023 17:44:49 +0000 Received: from mail-il1-f176.google.com ([209.85.166.176]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qKMqQ-006nLJ-1w for linux-arm-kernel@lists.infradead.org; Fri, 14 Jul 2023 17:44:44 +0000 Received: by mail-il1-f176.google.com with SMTP id e9e14a558f8ab-34642952736so9721835ab.3 for ; Fri, 14 Jul 2023 10:44:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689356681; x=1691948681; 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=OV9Da8S/o+GcXZDxCrzxUGI5PHKINHHUjNM42LhtDVI=; b=SMTWT4+Y+ezILuVpaEOqW4gNkIG0UDb6uDm0UBPQ1Hu0ifIhveqSD3hDSZL49C4/Hk CY9Z+ra0sPD40Bu6RuoxJCngKdhuAYGZ69kIT866kzq0dlAZ1GaL4pK7lNDSfrZj2Mr/ eE+cwbvVU40q4CmX7Zh7iUy0yVflBCamM/tmIAJO6Ed//Xu7he3kD/dVBxgNDkobbcyp vhEIJqSXDjnyrr/jktv801T4CJNpOs5UTuPsDPpW0S8Mni1mtAkr9y93i+iUXk5vb3Cb thvYNJ20G1rZyW6uDl5NHhqEwdkAlBsCYanQFwewzDJMoeqNnOIc248+jW1uRMfkEyFI kjCQ== X-Gm-Message-State: ABy/qLb06cJu7iOtgHzBWMBwUDRUeZGn/v75OJYmI0RDSy368WO3yZHE jzaqFqwpMauvt64Zq5jwKA== X-Google-Smtp-Source: APBJJlGlFtyf4Tie/h8dCIM7jryLsyrObgUhLDCFK/NgH9zG9diy+SFgnTmnsvaGmL9uZCjfxqHyPA== X-Received: by 2002:a92:dc92:0:b0:340:8cb1:aaa8 with SMTP id c18-20020a92dc92000000b003408cb1aaa8mr5022077iln.21.1689356681136; Fri, 14 Jul 2023 10:44:41 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id d13-20020a92d78d000000b00345d3f2bb6asm2861052iln.56.2023.07.14.10.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:44:40 -0700 (PDT) Received: (nullmailer pid 4054811 invoked by uid 1000); Fri, 14 Jul 2023 17:44:37 -0000 From: Rob Herring To: York Sun , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter , Andre Przywara , Johannes Thumshirn , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Marvin Lin , Stanley Chu , Michal Simek Cc: devicetree@vger.kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] EDAC: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:44:34 -0600 Message-Id: <20230714174434.4054728-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_104442_637906_54C78206 X-CRM114-Status: GOOD ( 12.21 ) 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 --- drivers/edac/fsl_ddr_edac.c | 3 +-- drivers/edac/highbank_l2_edac.c | 3 ++- drivers/edac/highbank_mc_edac.c | 3 ++- drivers/edac/mpc85xx_edac.c | 3 +-- drivers/edac/npcm_edac.c | 3 ++- drivers/edac/synopsys_edac.c | 1 - 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/edac/fsl_ddr_edac.c b/drivers/edac/fsl_ddr_edac.c index ac2102b25706..b81757555a8a 100644 --- a/drivers/edac/fsl_ddr_edac.c +++ b/drivers/edac/fsl_ddr_edac.c @@ -22,8 +22,7 @@ #include #include -#include -#include +#include #include #include "edac_module.h" #include "fsl_ddr_edac.h" diff --git a/drivers/edac/highbank_l2_edac.c b/drivers/edac/highbank_l2_edac.c index c4549cec788b..140d4431bd0d 100644 --- a/drivers/edac/highbank_l2_edac.c +++ b/drivers/edac/highbank_l2_edac.c @@ -7,8 +7,9 @@ #include #include #include +#include +#include #include -#include #include "edac_module.h" diff --git a/drivers/edac/highbank_mc_edac.c b/drivers/edac/highbank_mc_edac.c index 19fba258ae10..a0c04a7f95e9 100644 --- a/drivers/edac/highbank_mc_edac.c +++ b/drivers/edac/highbank_mc_edac.c @@ -7,8 +7,9 @@ #include #include #include +#include +#include #include -#include #include #include "edac_module.h" diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c index 55320546c174..2b5703e5066e 100644 --- a/drivers/edac/mpc85xx_edac.c +++ b/drivers/edac/mpc85xx_edac.c @@ -22,8 +22,7 @@ #include #include -#include -#include +#include #include #include #include "edac_module.h" diff --git a/drivers/edac/npcm_edac.c b/drivers/edac/npcm_edac.c index 12b95be3e989..6d15c1550263 100644 --- a/drivers/edac/npcm_edac.c +++ b/drivers/edac/npcm_edac.c @@ -3,7 +3,8 @@ #include #include -#include +#include +#include #include #include "edac_module.h" diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c index f7d37c282819..c4fc64cbecd0 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -11,7 +11,6 @@ #include #include #include -#include #include "edac_module.h"