From patchwork Mon Jul 17 22:54:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 121622 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1390008vqt; Mon, 17 Jul 2023 16:02:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlEOgtLfMYH1pBrXMHV+oFfFiqTIfjwxofQWqBfOnPNoq4vYQWyEPnBFKud24Qo0XYw9oP8H X-Received: by 2002:a17:906:74c7:b0:994:17e3:2753 with SMTP id z7-20020a17090674c700b0099417e32753mr14505946ejl.26.1689634940774; Mon, 17 Jul 2023 16:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689634940; cv=none; d=google.com; s=arc-20160816; b=iqiQA5feWeeS5NQmD1XHFM/WRxD+e2LsjHtXsLDJa8mR9rCFCkO57rEYZYzK6dJrlF xV22XapxpJ8H8tSnPdkjGvstM0xMvfBmyD9KP96UNsFEF4kAsVud2S9E7AcZE8Vj0v+J tCSgBTIMZxsFeoucvTOyhOHLn/h5UBZ5pxH/Kbzljp8a0zjQHdRnpwOQOeLHPLP/r8KV okTLTYGesCudWUwNoQxnSHwatHgaloSDdMFyHts1U1m74FObKe5FJkgo+sfmWbRSw3bf mIuJBfpZItsno6QV3pxUTojKtBLoiULBa9Ym5gZWb2CB5/41d+B+ZxT4JU+XZqzYMYGq 8low== 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=0bu+l3CJQrToETWCbM2zLn21chePALBMffAUIgT8ryk=; fh=0ZyorzLUmAlDFCy60vPLagamcm06x+G+v8I9PnlSJYA=; b=TfrL/l3glj8cGuDnxhM5fmCOZncbBjGNRIHAe+a3QOwctrf53EITs+1raxnLCY1L7h r8gg5Z83F6hAHtXoUHnHy6V+ryViTPCPNdGXtBEaQek8woPb+C23ENRUuKr0UfEkPW17 mLmFE38semju3Y+8jfTR9Tvn0tQJU7OJwG3Qf1F1gZKvXh+CGXKiyzrNZqb8MT4zrHQa bpJxHP6Kz6nDNppOyBzs12nRbvF0YwameAwD8kPopF92XlO2wrBwf6kAfE3ZYZy7/KkF s7uo0kFunv/NIKnAm07pGewwcst687roZ6Rrb1ZTAjkpFvDMCatSexgV305/l/Zlvmx8 HJfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GFMEVdY2; 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 pg26-20020a170907205a00b00965ec09592bsi268000ejb.817.2023.07.17.16.01.57; Mon, 17 Jul 2023 16:02:20 -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=GFMEVdY2; 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 S230239AbjGQW6o (ORCPT + 99 others); Mon, 17 Jul 2023 18:58:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230221AbjGQW6n (ORCPT ); Mon, 17 Jul 2023 18:58:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F5E8133 for ; Mon, 17 Jul 2023 15:58:42 -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 B0081612BB for ; Mon, 17 Jul 2023 22:58:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43B99C433C7; Mon, 17 Jul 2023 22:58:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689634721; bh=zoQDrQx6VA0Kzn37i4rBJiv4CQt7POFa0ThlQ9tICnE=; h=From:To:Cc:Subject:Date:From; b=GFMEVdY2Jrl1RBbURPK007unlOIoSJJcTelXbKBZBbtIcQulwvmfinloecmRKDNPm TXsPCStrYxwiNuRCfvZkDdgQuCp4A3j2WG9zUve0vETv6sn1k1+8X7cPAPyKheI4O3 TcxwjtWFn+hfpwqd9eQU1N9O5hG5rR+l9mMZ0FwgFSwfp0I+MnwoOO+J0k/DrqBMQE Igf79J0iGbExiXUqc43PQYk0CjdtLJzFI9NwzaEWRceoUJHN48a0K28Rk8IjU0v7wj ppK3YkwZ+LOYhY9iFr+DzZd5gNxMo7/Y4v+D5pP8GijhDZQYl4/mPGMqIy8HfvWx2T sRG/bXpHZ6mjg== Received: (nullmailer pid 3212156 invoked by uid 1000); Mon, 17 Jul 2023 22:55:01 -0000 From: Rob Herring To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: mvebu: Explicitly include correct DT includes Date: Mon, 17 Jul 2023 16:54:56 -0600 Message-Id: <20230717225456.3212019-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771710647682956658 X-GMAIL-MSGID: 1771710647682956658 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 --- arch/arm/mach-mvebu/kirkwood.c | 1 + arch/arm/mach-mvebu/pmsu.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mvebu/kirkwood.c b/arch/arm/mach-mvebu/kirkwood.c index 8ff34753e760..73b2a86d6489 100644 --- a/arch/arm/mach-mvebu/kirkwood.c +++ b/arch/arm/mach-mvebu/kirkwood.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c index 6f366d8c4231..79c5171f06ec 100644 --- a/arch/arm/mach-mvebu/pmsu.c +++ b/arch/arm/mach-mvebu/pmsu.c @@ -23,8 +23,8 @@ #include #include #include +#include #include -#include #include #include #include