Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2143425rdb; Mon, 9 Oct 2023 14:16:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLY9OzHqp7XpZkiO+T8wfnMOFDPSB3oBBhmksjFrZeCkOc64vLo7v7nfj4kWtqBSuj+L6r X-Received: by 2002:a17:902:d486:b0:1c9:97b7:b3cc with SMTP id c6-20020a170902d48600b001c997b7b3ccmr3057021plg.47.1696886174714; Mon, 09 Oct 2023 14:16:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696886174; cv=none; d=google.com; s=arc-20160816; b=lvYhGQxRJMC1Krk3700Lpi3E1EB8J2stTV02u32ISm/G0Kk7DVHiiGkrsL8I4SG12k 3NtoxSZGzsDTEPDrH/iSDmH9ouEmZas5K30Za0jGarPu+PSxPkGiNEPWRM50/Y2HxsnO YAaQnSDFyWuhwzHNFDHZJbghVpuD9GDf/q1NXUjtCHvtE5C5me9bA9uBZBMD33j1Tedd zdosOBnaOu7nzTff3gwSnoQSDuahfLZu1qOtsQ0BQ96ibIjb6OV2cbfQ9rLbfnOYEL9J Mic9QXm6kVNL38aFbmIzcBzkKAHyMT23rqSgXo5dbm6x/Lub0Y3g8aoF7MdVG6+sHM6m qcAA== 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=zKKLV8FNzmWhUuy1R62BUrauc+puibSq14+QmD/bsys=; fh=sBFfR4HRngJOCWKu1gy2mhVocPukf0jBJU2AWmEeETE=; b=Cjb9/SDHqvttqN5hnFVJLgFIHKkYmXOVSpS8ZJPt27KIlFKnQGCpil0PsPYKu9Obi0 qVDUV/SLWcMNk1X1WlzM7uy9wvtzwSbG6rlprpAl/yAgHMb3d8WGgm4ux1an73DLlZZw V5eLJth8e/T1jxc2j3El1ARbpORQVUheH8hXnE5zBjmaTpIZPixhGP6Wm8ldNABtk/kH S8LEigS46mHpUUghtX5DiODLOyzqgXdcuD9ALUlPuVxoVdF+by5Dsc97tr/9iIGJ+yWE JJ8RXyWLvOZDI+bnkVR5KvTzlYZVEklU0AgS/eFMBzM6uzy1exZVQKA7b1SJV79/dmo3 6qJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o6sICD0D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id ik5-20020a170902ab0500b001c88be7cdbfsi8595098plb.387.2023.10.09.14.16.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 14:16:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o6sICD0D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 919BA80B5A3C; Mon, 9 Oct 2023 14:16:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378676AbjJIVPt (ORCPT + 99 others); Mon, 9 Oct 2023 17:15:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378682AbjJIVPN (ORCPT ); Mon, 9 Oct 2023 17:15:13 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4CA4D62; Mon, 9 Oct 2023 14:14:40 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C301C433C7; Mon, 9 Oct 2023 21:14:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696886080; bh=pRTsya/t7TdWrezPtSMk6IUt3fMvEjFpaEopjd4gbVI=; h=From:To:Cc:Subject:Date:From; b=o6sICD0Dp8hm9by3EoXOmN7rZyOxzy41mzWWZeA2edPwQKT4Z4j6XD/A4HeeLJ6vz lyn5Iv+WTYGaD3Cfvxl7or7KTR1OYRWCj/43eohEq8mCmXybQYcJ2l/qacVv9r7lw9 6z7i3jOEbPWAgfT+VupGMt7hbz+o81sKpe7rr1lR/H1jujYnWjz7v5ldFMVt/9QwuD kh7L2NISfOSQ8WIkLOC6pEm2hc3WWoGMl9OjofWsTfD/lmLodu+ZoC63or6+IsxrAa nq+kC1GriFqr7nDM5vWByChxsWqzTD0rCqzyG3WwuJhNSvFs7ctF9W+l6bV8ca/GeP ICeXprpD6LE4g== Received: (nullmailer pid 3246318 invoked by uid 1000); Mon, 09 Oct 2023 21:14:14 -0000 From: Rob Herring To: Alain Volmat , Mark Brown , Maxime Coquelin , Alexandre Torgue 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: [PATCH] spi: stm32: Explicitly include correct DT includes Date: Mon, 9 Oct 2023 16:13:44 -0500 Message-ID: <20231009211356.3242037-14-robh@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 09 Oct 2023 14:16:12 -0700 (PDT) X-Spam-Level: ** 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/spi/spi-stm32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #include #include -#include +#include +#include #include #include #include -- 2.42.0