From patchwork Fri Jul 14 17:51:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 120654 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2672938vqm; Fri, 14 Jul 2023 11:12:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlFKV3U5PJENVEM28DQ9VewExiz7SpF7MtJt2wxPiHGmWUeA1klI26CYpz3eorvjgtm9EJOE X-Received: by 2002:a17:90a:e544:b0:263:5d25:150c with SMTP id ei4-20020a17090ae54400b002635d25150cmr3575097pjb.29.1689358361201; Fri, 14 Jul 2023 11:12:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689358361; cv=none; d=google.com; s=arc-20160816; b=Uwx6EsxCdx4ZZCo/AdFmVo1XJulgWgiR4kx73IZHqwMBSVIc3/QcOjdyyoZyRiR0gu P9RHKkxaSlS5eRi0Y/kBY/IrwdBvX9iEoGclMk8U3eYi6zIxwOncO1nmVCpatwRgSOsr mfOIyp5ajM+q2spDcHhvyWPbSDsy0T28ZFErP27hVS85x+GgV1gcK7rvdipLK61jBFeM 3D3KCf80lhawHOihdxQrNWjOvajBBWJmBexrkbJs4Ey1rwvFbKCSvy8xRQ+Gfm06s0x3 fylVD9oLQ8lSyC8gDvm1PYRQ8Bua2Cm4zR6Q2OgJtELQkFsmZ56rUX3hW1TILCtof4AG AlxQ== 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; bh=KMGMhhBOKvrqzG6Chm/OfzHX4ABY4AlZjMg+WBLKLoE=; fh=i90L2s0OZX6xaM0Bztya1aG2KR5hypDSyJe+Y/UTdJw=; b=pXiniqpqS2VVpIrM1SqiJTzgAQEtbSAGsfOtczaNrpLOcXWqjnt+5tf+1/CpfFWc3u Y20L89/Gx45pROdOjG0yya9R2k2/EpgO0aMG6+leFOQ7tqIWoZGXHKNQkE6Po500eO0y jpaDYcHUEUQLgM98nAU6odj9r48cRS3woULsHk1BwlzkPBPgC+bb5WSEZhlPMpln4AQI rKUobZb2aj49C6LohLn31b5r25FYpMR5U+WJaknnH+ulkE//uSfcgHXLvns/nLECJsgb kQkBo7Y9jQf3OliYVJguGCwWLCuOoaVUP+OE7kmpUJjzfST1gzMaVAd4r2LsWIA/TO6B k1jg== ARC-Authentication-Results: i=1; mx.google.com; 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 r6-20020a17090b050600b00260a6621b4bsi1586770pjz.117.2023.07.14.11.12.28; Fri, 14 Jul 2023 11:12:41 -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; 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 S236747AbjGNRyH (ORCPT + 99 others); Fri, 14 Jul 2023 13:54:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236627AbjGNRxn (ORCPT ); Fri, 14 Jul 2023 13:53:43 -0400 Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 921823A8F; Fri, 14 Jul 2023 10:53:13 -0700 (PDT) Received: by mail-io1-f41.google.com with SMTP id ca18e2360f4ac-7836272f36eso89730839f.1; Fri, 14 Jul 2023 10:53:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689357131; x=1691949131; 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=KMGMhhBOKvrqzG6Chm/OfzHX4ABY4AlZjMg+WBLKLoE=; b=CnkRYubZ8QS9nYtO5F/7uVbii1E0Py6K9L8H/7jcQbFwF1/1jTXSNiGUydPAwFiLnN zM2ZxYIV+pgocnfjhfrlXNbYGFGJIouZHdlYkQ8LSqEZbxHwisLD0U3RW/tCcKgK/YpM ntMlkFp4iew62EZKHlu784qjdXSxYg36xiLMQP96KC4KYhF7zbA2AsQgEx6PRWG9VEsp gvYO66FxFXFjZu33lCjDFU7K38gb3ddESd9hCHC/6zbXoQP7yZfn5cuumI+vvYWnK49C hI71Qd2C3hI8aKQK2L8XUkq1OmMc07ptxa9MJBmKTXeUUcUl8f2zrQUpgDEbtDS2D/uF 3Yug== X-Gm-Message-State: ABy/qLYiJRpKgu8JK1vrHt0UxWBo7pSqnYO3s3YlJkihT52JYN+c2OuS 4/Fs27U4OmnZe0UmQq8vRw== X-Received: by 2002:a6b:5b04:0:b0:783:4f8d:4484 with SMTP id v4-20020a6b5b04000000b007834f8d4484mr5964377ioh.2.1689357130978; Fri, 14 Jul 2023 10:52:10 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id a1-20020a5d9581000000b007836a9ca101sm2823607ioo.22.2023.07.14.10.52.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:52:10 -0700 (PDT) Received: (nullmailer pid 4067514 invoked by uid 1000); Fri, 14 Jul 2023 17:51:35 -0000 From: Rob Herring To: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] soc: imx: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:51:33 -0600 Message-Id: <20230714175134.4067445-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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: 1771420633174333182 X-GMAIL-MSGID: 1771420633174333182 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/soc/imx/gpcv2.c | 2 +- drivers/soc/imx/imx8m-blk-ctrl.c | 3 ++- drivers/soc/imx/imx8mp-blk-ctrl.c | 2 +- drivers/soc/imx/imx93-blk-ctrl.c | 2 +- drivers/soc/imx/imx93-pd.c | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c index 4b3300b090a8..fbd3d92f8cd8 100644 --- a/drivers/soc/imx/gpcv2.c +++ b/drivers/soc/imx/gpcv2.c @@ -9,7 +9,7 @@ */ #include -#include +#include #include #include #include diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c index afbca0d48c14..cc5ef6e2f0a8 100644 --- a/drivers/soc/imx/imx8m-blk-ctrl.c +++ b/drivers/soc/imx/imx8m-blk-ctrl.c @@ -8,7 +8,8 @@ #include #include #include -#include +#include +#include #include #include #include diff --git a/drivers/soc/imx/imx8mp-blk-ctrl.c b/drivers/soc/imx/imx8mp-blk-ctrl.c index 870aecc0202a..5a9f5ece43d9 100644 --- a/drivers/soc/imx/imx8mp-blk-ctrl.c +++ b/drivers/soc/imx/imx8mp-blk-ctrl.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/soc/imx/imx93-blk-ctrl.c b/drivers/soc/imx/imx93-blk-ctrl.c index 2c600329436c..a734889b67ce 100644 --- a/drivers/soc/imx/imx93-blk-ctrl.c +++ b/drivers/soc/imx/imx93-blk-ctrl.c @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/soc/imx/imx93-pd.c b/drivers/soc/imx/imx93-pd.c index 832deeed8fd6..b9e60d136875 100644 --- a/drivers/soc/imx/imx93-pd.c +++ b/drivers/soc/imx/imx93-pd.c @@ -5,8 +5,8 @@ #include #include -#include #include +#include #include #include #include