Message ID | 20230718205508.1790932-1-robh@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2008509vqt; Tue, 18 Jul 2023 14:04:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlH1Ehl2PFgeCObfKHVF4mExMYoDtAQDWsT0z1CXFfnJR7yy9nzUW46I8d78qxFEOau+2TeU X-Received: by 2002:a17:902:7285:b0:1b8:5aba:509d with SMTP id d5-20020a170902728500b001b85aba509dmr680389pll.21.1689714298851; Tue, 18 Jul 2023 14:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689714298; cv=none; d=google.com; s=arc-20160816; b=WUdIZsodU2qDZqu6OPTDSbqiBcg+P9lZJ0z2P6Ib5EtIiiLVO40YvaocmKy3hkTkSF JbjxS62jsQGawTNB2l47nvBQ3wyoewykOgD9Xlk1AMeAHjRAgRHZumt6bneid5ti6wEr +FkBCaHh58ZwQpiSdyMLqeoBZatjWgGQ5WHVROd5mbv64Qj6iDIqZZBG8ZKPXFA2Y+sa CICVhaDJLMwGj3FWxQU3ro2N9FkHmjv/YqjSkt9aaS73KQcexaYyc9vQSQOTupvwmo6n rsjS60x/vwhLih9rs13JUZrkoYg5g7WR5KXdajiAQkqUhaACCz3f/VWjuwjLE9ZDjJwY OB1g== 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=tVVzGZsecUkUU+eawpmA2mbSkRyDZI002IOQv0cE1NY=; fh=2LaAsxf82lWfjE3jxR5liHwgHotoAlx5cXqi7P2hx1w=; b=hl4fufZsdOfmNpNFBpbwlbukvQN3QMnDTYtKRcm3oNAO2SkX82vRXQ8Ugg+xOAz09d ey9CfaT+8hXKlGQ+Yb/jKEl1I+CTf8r1hKIwW++Iyo/Rm/xb4v0FOoifB5Pqbzgsq4Ic Awg6NMs7K6bJLgqKsnRi4Qq0UivGoQg/TGqim3px7R1iz4YmofbXE2w70YGugHWboXWZ 56Vf2WEeLS0dobjsFOQtGF93UQ4+bFHftW+hcbKm0sQEGKMawnNB6wR33jmETV82gNei /UmyiAeOt+i5f26YBTNbuPdoMPma3OCZ6vUJ2zkZEBiw7DNURJ2XjskErMO1qzMw+hJr KBBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rJQp7xnF; 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 s18-20020a17090330d200b001b9e29e5866si2079671plc.352.2023.07.18.14.04.44; Tue, 18 Jul 2023 14:04:58 -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=rJQp7xnF; 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 S231124AbjGRUzh (ORCPT <rfc822;chrisben.tianve@gmail.com> + 99 others); Tue, 18 Jul 2023 16:55:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbjGRUzf (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 18 Jul 2023 16:55:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B760198C for <linux-kernel@vger.kernel.org>; Tue, 18 Jul 2023 13:55:34 -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 085B360DC7 for <linux-kernel@vger.kernel.org>; Tue, 18 Jul 2023 20:55:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEEBBC433C8; Tue, 18 Jul 2023 20:55:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689713733; bh=M0onE6i8LADYq4rymohE2xl3aT/2qhOS8gY865csRy0=; h=From:To:Cc:Subject:Date:From; b=rJQp7xnFkUhyUlWzwfc8LOJrz5AAYmmUWLnoteAmgx5CkfAAWovFMQ7sticHzqUHA oTLADBDkF0KqqJOJhZKWV2qWxn71ZBWTITUkyaafBgKJLDwp18Ymx3BnaWJPHMt5+Z QEoNYWiABtPCMU+D7mxdXEUUe0INufQ4y4jqyAUY7hHwOghTSwxp3B63PlzA+Lev2J Tb20ezYHeAJvRcU+9AIHhnW1PKu2oGbFcnrH9bq8mUbBG/7nfgQ2Jq8rr6v3SpRUtz wj/2VgE/A9kwLAL+ZXXUnI5S/uHCA59zMr/obUskTSePowWXi72GbZMzHP5SWmvWuh sO+Z2t9ogI9iA== Received: (nullmailer pid 1791507 invoked by uid 1000); Tue, 18 Jul 2023 20:55:31 -0000 From: Rob Herring <robh@kernel.org> To: Jeremy Kerr <jk@ozlabs.org>, Joel Stanley <joel@jms.id.au>, Alistar Popple <alistair@popple.id.au>, Eddie James <eajames@linux.ibm.com> Cc: linux-fsi@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] fsi: Explicitly include correct DT includes Date: Tue, 18 Jul 2023 14:55:08 -0600 Message-Id: <20230718205508.1790932-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771793860424506281 X-GMAIL-MSGID: 1771793860424506281 |
Series |
[v2] fsi: Explicitly include correct DT includes
|
|
Commit Message
Rob Herring
July 18, 2023, 8:55 p.m. UTC
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 <robh@kernel.org>
---
v2:
- I inadvertently had a dependency in my tree partially updating the
headers. That's squashed in now.
---
drivers/fsi/fsi-occ.c | 2 +-
drivers/fsi/fsi-sbefifo.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Comments
On 7/18/23 15:55, Rob Herring wrote: > 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. Thanks, Reviewed-by: Eddie James <eajames@linux.ibm.com> > > Signed-off-by: Rob Herring <robh@kernel.org> > --- > v2: > - I inadvertently had a dependency in my tree partially updating the > headers. That's squashed in now. > --- > drivers/fsi/fsi-occ.c | 2 +- > drivers/fsi/fsi-sbefifo.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/fsi/fsi-occ.c b/drivers/fsi/fsi-occ.c > index abdd37d5507f..da35ca9e84a6 100644 > --- a/drivers/fsi/fsi-occ.c > +++ b/drivers/fsi/fsi-occ.c > @@ -15,7 +15,7 @@ > #include <linux/mutex.h> > #include <linux/fsi-occ.h> > #include <linux/of.h> > -#include <linux/of_device.h> > +#include <linux/of_platform.h> > #include <linux/platform_device.h> > #include <linux/sched.h> > #include <linux/slab.h> > diff --git a/drivers/fsi/fsi-sbefifo.c b/drivers/fsi/fsi-sbefifo.c > index 9912b7a6a4b9..4bae52c98620 100644 > --- a/drivers/fsi/fsi-sbefifo.c > +++ b/drivers/fsi/fsi-sbefifo.c > @@ -22,8 +22,8 @@ > #include <linux/module.h> > #include <linux/mutex.h> > #include <linux/of.h> > -#include <linux/of_device.h> > #include <linux/of_platform.h> > +#include <linux/platform_device.h> > #include <linux/sched.h> > #include <linux/slab.h> > #include <linux/uaccess.h>
diff --git a/drivers/fsi/fsi-occ.c b/drivers/fsi/fsi-occ.c index abdd37d5507f..da35ca9e84a6 100644 --- a/drivers/fsi/fsi-occ.c +++ b/drivers/fsi/fsi-occ.c @@ -15,7 +15,7 @@ #include <linux/mutex.h> #include <linux/fsi-occ.h> #include <linux/of.h> -#include <linux/of_device.h> +#include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/sched.h> #include <linux/slab.h> diff --git a/drivers/fsi/fsi-sbefifo.c b/drivers/fsi/fsi-sbefifo.c index 9912b7a6a4b9..4bae52c98620 100644 --- a/drivers/fsi/fsi-sbefifo.c +++ b/drivers/fsi/fsi-sbefifo.c @@ -22,8 +22,8 @@ #include <linux/module.h> #include <linux/mutex.h> #include <linux/of.h> -#include <linux/of_device.h> #include <linux/of_platform.h> +#include <linux/platform_device.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/uaccess.h>