Message ID | 20231030142620.818663-2-robh@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp2257116vqb; Mon, 30 Oct 2023 07:27:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJwxaoydHW2dlZyJrgy3E5zevSRx3owPvfQIHqb2Whd6ILiI2Q92OgtCTamZKc09eAZL/n X-Received: by 2002:a05:6a00:148c:b0:6ba:8478:b99f with SMTP id v12-20020a056a00148c00b006ba8478b99fmr12837217pfu.28.1698676060219; Mon, 30 Oct 2023 07:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698676060; cv=none; d=google.com; s=arc-20160816; b=D3cooDiuSFWsYCOgBlbsC6UJ4/4jt1nvbV8BIgiz+GLjmHdkG3jSnyEzyDJUq8J2Kc /lT0Wkb2VsNLDlhk7H6qAmf47oneHrZ/4GyazsULkHfLjokENuLhGo8O5ZfX4kSdaC48 /eaa90iTfqHQZXpEHum6Gi1U4snf25WKdS5axtKDkAw49LNSeQrP0me2nGiMsEj6Sop4 5hm9I0TCFkGGFmhqSVwCsB3SqPkP7goCp6kbgMAPQ5VCnvth2+zmUDjdgGIqfSEbf3B5 KS4YajCPK7DMlWLvY2y5OBcpO6VDI7cxrSRNatej2la3Tcf27x2c3xAHQHGh2Xf0V69H L1Lw== 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=bqGE+grehw3xbV0zDjPAo9aiOxbRmWUNIDFRm/VPJr4=; fh=DQSo0mGUtnZ+Aq3/Pe2n3QMfZ2YEDpCUbs9HzHDEcZ0=; b=BUOIw76kHyXVqyfebzDmheecx55SfsJ7mQ5s+OT7gOxTN+/EfWUXWiH7/imUy5kJY6 R4mt1QBW4jz/uboIKYNWU5FkZy5i+cXfo50hplZiHf9UEpgTxGJd1aNG0rwRX+rj79Zl IB0nH3OLqhMWGpDWQmBAm9xaLbnsRLrXAF499dYoLr9aq/ooiiXD4RyURCIT+T15Fdn1 kiPtrlHd0EZFGINXRjq5a5AM2g5lwmu5lqEnnOChyMIaRQwoExLwJl/RHopTiF9phOsS 69KbELK5r/wUorDMtkVPrbMpnNzMUevsKzNnq5Aq/NGpC/MtnA1extXo0hRUD/yhgERm Uhlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id s19-20020a056a0008d300b006c1222cac30si1129553pfu.193.2023.10.30.07.27.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 07:27:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 090E7804A815; Mon, 30 Oct 2023 07:27:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233308AbjJ3O11 (ORCPT <rfc822;zxc52fgh@gmail.com> + 31 others); Mon, 30 Oct 2023 10:27:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231919AbjJ3O10 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Oct 2023 10:27:26 -0400 Received: from mail-oo1-f41.google.com (mail-oo1-f41.google.com [209.85.161.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37C18B7 for <linux-kernel@vger.kernel.org>; Mon, 30 Oct 2023 07:27:24 -0700 (PDT) Received: by mail-oo1-f41.google.com with SMTP id 006d021491bc7-586beb5e6a7so2301279eaf.1 for <linux-kernel@vger.kernel.org>; Mon, 30 Oct 2023 07:27:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698676043; x=1699280843; 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=bqGE+grehw3xbV0zDjPAo9aiOxbRmWUNIDFRm/VPJr4=; b=OgTsuHkDKYHmB3MV2aL0puWkJXxemae+TDAS+/UVduLzpTP/ZlnOa1GKrG4HvIe+HR RCmYrC8w0DHoiup/1RrzM4fDsMuX/nTWNRbK0j3Fb4Ob7gAOgIALr/w9UBSDhzCc+rIj vks0xdq9nXhAWEgv47ZmCaxBIvgK9LNi7x6UbhROwlML2BFe1N13DP55SXhxm4YS3TpE VcnuaRTp+V4WbpxP/NhSyn390cgrtuC/hUiuuO25gQ0EPUNmL6kNc8ESenhqN1Mldfe7 gZAXiTWpHkG/fjO3vPx4N5hPCbFeNB0CHV7k8SlCeBZ8kAblCZ8ha1M21tVccWvfMISN 0m9g== X-Gm-Message-State: AOJu0YwtdpVQZBjcsput7xf2MGDemXoYxaw1CXJr8u/67lgC5RBrewXq hJY91S2Wsf5x6Zgsx/YUvfXHB/GneQ== X-Received: by 2002:a05:6870:815:b0:1e9:9c39:a580 with SMTP id fw21-20020a056870081500b001e99c39a580mr11847037oab.7.1698676043410; Mon, 30 Oct 2023 07:27:23 -0700 (PDT) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id q5-20020a9d6305000000b006ce32816a35sm1445877otk.81.2023.10.30.07.27.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 07:27:22 -0700 (PDT) Received: (nullmailer pid 822774 invoked by uid 1000); Mon, 30 Oct 2023 14:27:21 -0000 From: Rob Herring <robh@kernel.org> To: soc@kernel.org, Hector Martin <marcan@marcan.st>, Sven Peter <sven@svenpeter.dev>, Alyssa Rosenzweig <alyssa@rosenzweig.io> Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] soc: apple: mailbox: Add explicit include of platform_device.h Date: Mon, 30 Oct 2023 09:26:21 -0500 Message-ID: <20231030142620.818663-2-robh@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 30 Oct 2023 07:27:38 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781190948737729100 X-GMAIL-MSGID: 1781190948737729100 |
Series |
[RESEND] soc: apple: mailbox: Add explicit include of platform_device.h
|
|
Commit Message
Rob Herring
Oct. 30, 2023, 2:26 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 and pull in various other headers. In
preparation to fix this, adjust the includes for what is actually needed.
platform_device.h is implicitly included by of_platform.h, but that's going
to be removed.
Signed-off-by: Rob Herring <robh@kernel.org>
---
Note this was added in the merge window and missed the last round.
Arnd, Can you apply this directly.
---
drivers/soc/apple/mailbox.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Mon, Oct 30, 2023 at 10:27 AM Rob Herring <robh@kernel.org> 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 and pull in various other headers. In > preparation to fix this, adjust the includes for what is actually needed. > > platform_device.h is implicitly included by of_platform.h, but that's going > to be removed. > > Signed-off-by: Rob Herring <robh@kernel.org> > --- > Note this was added in the merge window and missed the last round. > > Arnd, Can you apply this directly. > > --- > drivers/soc/apple/mailbox.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/soc/apple/mailbox.c b/drivers/soc/apple/mailbox.c > index 0cbd172f435e..780199bf351e 100644 > --- a/drivers/soc/apple/mailbox.c > +++ b/drivers/soc/apple/mailbox.c > @@ -26,6 +26,7 @@ > #include <linux/module.h> > #include <linux/of.h> > #include <linux/of_platform.h> > +#include <linux/platform_device.h> > #include <linux/pm_runtime.h> > #include <linux/spinlock.h> > #include <linux/types.h> > -- > 2.42.0 > > Pretty obvious patch. Reviewed-by: Neal Gompa <neal@gompa.dev>
On 2023/10/30 23:26, 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 and pull in various other headers. In > preparation to fix this, adjust the includes for what is actually needed. > > platform_device.h is implicitly included by of_platform.h, but that's going > to be removed. > > Signed-off-by: Rob Herring <robh@kernel.org> > --- > Note this was added in the merge window and missed the last round. > > Arnd, Can you apply this directly. Just noticed this but I'm confused. I never sent Arnd the pull for this, so it's not upstream nor on the way yet. I've applied it to asahi-soc/mailbox though. Thanks for reminding me, I'll send the pull now :) - Hector
diff --git a/drivers/soc/apple/mailbox.c b/drivers/soc/apple/mailbox.c index 0cbd172f435e..780199bf351e 100644 --- a/drivers/soc/apple/mailbox.c +++ b/drivers/soc/apple/mailbox.c @@ -26,6 +26,7 @@ #include <linux/module.h> #include <linux/of.h> #include <linux/of_platform.h> +#include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/spinlock.h> #include <linux/types.h>