Message ID | 20231017203352.2698326-1-robh@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4384431vqb; Tue, 17 Oct 2023 13:34:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHS0sp7mzHs6rS6qtLPSwYOPmP6nCeyirg+6CTXaVjdXz39s15HKHN/yEUTwclnj7cEz4C1 X-Received: by 2002:a05:6359:8001:b0:166:db65:af9a with SMTP id rc1-20020a056359800100b00166db65af9amr2851842rwb.2.1697574855688; Tue, 17 Oct 2023 13:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697574855; cv=none; d=google.com; s=arc-20160816; b=TQlwBN+ihjWCggYsPuW9n+hH/NlJkpnYE8ZMqq9hIwW7T7e9c12VScCl74GaR/Uhdm 9pTLfeVR21IzzDD7bpRdAg7qzH1qetNS7A/O6YyzS1BY6UPwGWGH22GUJftbNMCjOm9+ Jhy+GczM02/iXeNQLt/2+oIepMzB1/7723BGf3lTJSfSK+c1NeHJqjG4+m1DMork0b6Y 4T0c2fMe7tWj+rzLb9RWTqRdi2us7yeMKjPFPaqsuFSiBdjQMk8t1vknrp5YDiVgfK3s 1Pef7r8XhJBjiO0ni0Dnpiyw6xyBEGG1Z+CKATqGRMETvJTeid3HqtEFuVQPL18tWAcR cdiA== 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=KRrz5g1aSnyLW5lEPOvcNKexij9vwV1ZcmYt4LIdaa0=; fh=sBFfR4HRngJOCWKu1gy2mhVocPukf0jBJU2AWmEeETE=; b=se0UKx6hNTn2YbTFasQJdpO3hux0E1andVVUAY8xdy9ufjHHEKMzfVpIa5vBG0b7Vg 4yBoJ294l0JGZlKaFxXMnstDazqkSRiS4in1rgBOtUNAlZ5wHgc+mpWt0qGWdx6zAmOA 19+A1UCupodNBpmqgEPd6nFUet6hrHJ4FvykuwHMArBeskYOvE/sq738p6Bz0wtx6t4E h3ZSGz0cBayQ0CLh6efFHzOpvQL8H+YddB2eCoxx2SmdNmpfktUbwu/rrhDsrFvWZbBB J1NaoEDPp7P6Ci1MU1RbQBEd/3kr+obS4TlxLzGBLhKXfZwtjnM+KNUt+ZX9Avozum1F AtOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id d5-20020a056a0010c500b006be3cf601adsi2430671pfu.270.2023.10.17.13.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 13:34:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id E94AC801B81E; Tue, 17 Oct 2023 13:34:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231149AbjJQUeH (ORCPT <rfc822;dexuan.linux@gmail.com> + 21 others); Tue, 17 Oct 2023 16:34:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229883AbjJQUeG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 17 Oct 2023 16:34:06 -0400 Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D293BA; Tue, 17 Oct 2023 13:34:05 -0700 (PDT) Received: by mail-ot1-f54.google.com with SMTP id 46e09a7af769-6c7bbfb7a73so4174738a34.3; Tue, 17 Oct 2023 13:34:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697574844; x=1698179644; 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=KRrz5g1aSnyLW5lEPOvcNKexij9vwV1ZcmYt4LIdaa0=; b=QSsBa4Wb/oU29C7OdwCQCT8FNQW773dUe90tRb1sT6lGRkutXAjwwJOGbpJFQpjbdl VIzI+pge+8PYBrtjVyR6ZXPBdEmbd+Fzt9p3Zs/h6y8jEnMCWQv2qRy/9Sh97J7GM6p1 gRmjML69cyWxaV13YlXvGn9EpIWLRkZlnyj0pCiFkbrP9PiFJPCqh42iO13L7ZhYbIQi 49wGWrpVRo4E+YW53ixfGIlFTXkxEX1/EjjVcDJgYNzDnc6qx+wJjg+fzMnpUeU8Ete2 kYmCfg5ohsH3iSNH9sw4oJ+UgmZqu6RSmZNWeEtqgKlmJd++xXTIWoVjI4Fj4JOSw3cy Cd0w== X-Gm-Message-State: AOJu0YzRyyeoXVFbPZ9eTECEn/4uw6OZTVXMpv3w+nT5igySbf74mc0O boGH9KBrXXRCiUMPmtjEiw== X-Received: by 2002:a05:6830:71a6:b0:6c0:ef3c:5ab4 with SMTP id el38-20020a05683071a600b006c0ef3c5ab4mr4003506otb.0.1697574844449; Tue, 17 Oct 2023 13:34:04 -0700 (PDT) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id g20-20020a9d6b14000000b006b99f66444bsm380588otp.71.2023.10.17.13.34.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 13:34:03 -0700 (PDT) Received: (nullmailer pid 2698572 invoked by uid 1000); Tue, 17 Oct 2023 20:34:03 -0000 From: Rob Herring <robh@kernel.org> To: Alain Volmat <alain.volmat@foss.st.com>, Mark Brown <broonie@kernel.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com> Cc: linux-spi@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] spi: stm32: Explicitly include correct DT includes Date: Tue, 17 Oct 2023 15:33:51 -0500 Message-ID: <20231017203352.2698326-1-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 17 Oct 2023 13:34:13 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780036251567783085 X-GMAIL-MSGID: 1780036251567783085 |
Series |
[RESEND] spi: stm32: Explicitly include correct DT includes
|
|
Commit Message
Rob Herring
Oct. 17, 2023, 8:33 p.m. UTC
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was 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. Acked-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Rob Herring <robh@kernel.org> --- drivers/spi/spi-stm32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Tue, 17 Oct 2023 15:33:51 -0500, Rob Herring wrote: > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it was 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. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: stm32: Explicitly include correct DT includes commit: 692225015c82d3eece55a07d16cd24c4dc63a6a5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c index ef665f470c5b..e6e3e4ea29f9 100644 --- a/drivers/spi/spi-stm32.c +++ b/drivers/spi/spi-stm32.c @@ -13,7 +13,8 @@ #include <linux/interrupt.h> #include <linux/iopoll.h> #include <linux/module.h> -#include <linux/of_platform.h> +#include <linux/of.h> +#include <linux/platform_device.h> #include <linux/pinctrl/consumer.h> #include <linux/pm_runtime.h> #include <linux/reset.h>