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 (Arm)" X-Patchwork-Id: 13328657 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3CD6C41513 for ; Thu, 27 Jul 2023 01:20:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229587AbjG0BUv (ORCPT ); Wed, 26 Jul 2023 21:20:51 -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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org 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