From patchwork Thu Jul 27 01:20:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 126587 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp781439vqo; Wed, 26 Jul 2023 18:48:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlEuWabX7kx1wTOn7q3svK6Td2A3pah1sgLwm9HmwuuNI9Gcra2Tnw+z7F0JwE4Mef5coc4e X-Received: by 2002:a19:8c09:0:b0:4fb:8c52:611 with SMTP id o9-20020a198c09000000b004fb8c520611mr480127lfd.38.1690422529466; Wed, 26 Jul 2023 18:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690422529; cv=none; d=google.com; s=arc-20160816; b=yp3mOKr89nZRnUyXsHTc8ScUlkSGGWQU7puOhjRCAZTwXQKSPRmjj1ipn42aPVqq3j JutRNi+DhfwcZUGsPNxzRA/Q9rtUWryWX4aycA+WoIO04Y0OYCluNNJc2kjuE0kUXs7z T432f+xHjfdN+eaqfpHVHWmxE4Lql/9p073QXh0LuvecCm4RcI9tK8IG4gZw6Yj2w8Lz 8sRzuh7UPCQW2kwFSp/THFDCbCMk8+h8dTqctea52q2rD+x5WmoSYcFcPuaFUlkj11gT oxen6g69RVK2tUi5kEeDl44Z/AB8cwOy5D4ax6DZiWAWkNCx7DeR8hAipFnI2RQpNrtF vUXg== 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=3GqBKvRymTuKZEuszjhZ3SXRURzV8fon/IHIBdKo7GI=; fh=6+GnaeKF/KgaTLLquQgeiMNRPkcxEjaGcf9DD4Hdpx8=; b=FajxiCrrfhOQIYk/P3cZgcap3Mz15AxNMEVcDDI5f+nDzzLU01f0SKIWe2HPDtMcg3 wo2e4JzbAm8LGaUrAvPs//gTInoDxBzOIu/DpmvcwoxBt6aNcyzxeBmea+llTtdyS+r6 De23XdljIfoqQhg+fke2ERiqoW0WgvlUe888XD0ZxzM3736sQ6RU9bVaMfWCRsBhKSHJ GCMPRXVgtq291XRNpQoRxnPlloEwzDah/dJJkzDMS0BOR5lu1lP0mVoTXWvRaX7mJGp7 WqoF/H+zGOhMFdOej4W/1Uzn4AgDO24BfLE42PxpqE2140bKcvyMRhKZzxk9rPMIfoTv nU0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BdGNu3AR; 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 g7-20020aa7d1c7000000b005223abb31ccsi141782edp.354.2023.07.26.18.48.25; Wed, 26 Jul 2023 18:48:49 -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=BdGNu3AR; 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 S230372AbjG0BUw (ORCPT + 99 others); Wed, 26 Jul 2023 21:20:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230306AbjG0BUu (ORCPT ); Wed, 26 Jul 2023 21:20:50 -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 8193CA3; Wed, 26 Jul 2023 18:20:49 -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 1788461CE6; Thu, 27 Jul 2023 01:20:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 228DBC433C7; Thu, 27 Jul 2023 01:20:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690420848; bh=V9RQoD3GdgkmyIdiyKx+50kQLweqOpaZwUHyRYOloZY=; h=From:To:Cc:Subject:Date:From; b=BdGNu3ARrlkaP+iMKnBbg9T35KACQM8jWbXvYxYUIIgBsFQPmId9Zp6Kd6o1kwJ5l SKR9vFtLwl0a6D+F4keqHMC8CzRJS4OSUntkVeSzfkcFpB/nS4iUaHBr9ojIo7l0HX 8tAxK8BeUkhgTYDGBNlGu0sU8CT5PpgEoTkpd8ttSCKjJQcqJx5BNe+9Pa/kvrusj/ 5TNk6fABzlqREDmOXZKDiBMF5s8OkSEx/pU5jlkymLzZoosWJsBdq2JUvq6hLu7PjL 1E80LPJj5fbF649KVF2ON+sY7G08/VJsy9KrrGyleHOHrY8UHyDaoFdh7AB97PLHVA tANd7ik+nlraQ== Received: (nullmailer pid 3934187 invoked by uid 1000); Thu, 27 Jul 2023 01:20:46 -0000 From: Rob Herring To: Thomas Bogendoerfer , John Crispin Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: More explicit DT include clean-ups Date: Wed, 26 Jul 2023 19:20:39 -0600 Message-Id: <20230727012040.3934021-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: 1772536494253646672 X-GMAIL-MSGID: 1772536494253646672 A couple more clean-ups in the MIPS code. 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. Signed-off-by: Rob Herring --- I've now built all MIPS defconfigs in my tree which removes the implicit includes. So I found a few more fixes. This can be squashed into the previous commit if desired. --- arch/mips/cavium-octeon/octeon-platform.c | 2 ++ arch/mips/cavium-octeon/octeon-usb.c | 2 ++ arch/mips/ralink/ill_acc.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/arch/mips/cavium-octeon/octeon-platform.c b/arch/mips/cavium-octeon/octeon-platform.c index ce05c0dd3acd..60da1b2091f5 100644 --- a/arch/mips/cavium-octeon/octeon-platform.c +++ b/arch/mips/cavium-octeon/octeon-platform.c @@ -8,8 +8,10 @@ */ #include +#include #include #include +#include #include #include diff --git a/arch/mips/cavium-octeon/octeon-usb.c b/arch/mips/cavium-octeon/octeon-usb.c index 2add435ad038..add0f23592b3 100644 --- a/arch/mips/cavium-octeon/octeon-usb.c +++ b/arch/mips/cavium-octeon/octeon-usb.c @@ -15,7 +15,9 @@ #include #include #include +#include #include +#include /* * USB Control Register diff --git a/arch/mips/ralink/ill_acc.c b/arch/mips/ralink/ill_acc.c index f395ae218470..25341b2319d0 100644 --- a/arch/mips/ralink/ill_acc.c +++ b/arch/mips/ralink/ill_acc.c @@ -5,8 +5,10 @@ */ #include +#include #include #include +#include #include