From patchwork Mon Jul 17 15:03:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 703821 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 4D72CEB64DC for ; Mon, 17 Jul 2023 15:04:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230339AbjGQPE4 (ORCPT ); Mon, 17 Jul 2023 11:04:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbjGQPEz (ORCPT ); Mon, 17 Jul 2023 11:04:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02276E7F; Mon, 17 Jul 2023 08:04:55 -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 952E26105C; Mon, 17 Jul 2023 15:04:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C921C433C8; Mon, 17 Jul 2023 15:04:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689606294; bh=kRV/xSf86iTldaNK/Wk2zNVVTiDcvdiI33s7jGOYRsM=; h=From:To:Cc:Subject:Date:From; b=EKyWMGofhVGHC07otPIzcKxMQP9WkSc0w09sua0P48+YuirRmJ9+cumJ+PYMUZZq6 Fmrg2Uhqv8vo79m9hav8qbQTKKilWJNCOo3DmGYEfxybMb/aIsYo+3eVzpJ/BHFI6R 9/pKQe75PGK6U7bF+of2BeS/U4in0wIupcYlqX7/dnIDfpS1jyGkCgjUmuNUu34nrO i2QZDIQFGiWGX9QySp2w5ngK86PKv3jU6rr4Vx8WoBUrKCLfMjqHlKBVmVbWumM6jF uIBvHkkLShoM54a9k3A3Pht4DHOFTjiMVrBD8swttw1Rt5t04BINnTJi/uSqdl5qV0 hfTisV50GKvkQ== Received: (nullmailer pid 1750720 invoked by uid 1000); Mon, 17 Jul 2023 15:04:52 -0000 From: Rob Herring To: Nipun Gupta , Nikhil Agarwal , Greg Kroah-Hartman Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cdx: Explicitly include correct DT includes Date: Mon, 17 Jul 2023 09:03:55 -0600 Message-Id: <20230717150355.1749845-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- Note that drivers/cdx/ is missing a MAINTAINERS entry. Please add one. drivers/cdx/controller/cdx_controller.c | 3 ++- drivers/cdx/controller/cdx_rpmsg.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/cdx/controller/cdx_controller.c b/drivers/cdx/controller/cdx_controller.c index dc52f95f8978..bb4ae7970e21 100644 --- a/drivers/cdx/controller/cdx_controller.c +++ b/drivers/cdx/controller/cdx_controller.c @@ -5,7 +5,8 @@ * Copyright (C) 2022-2023, Advanced Micro Devices, Inc. */ -#include +#include +#include #include #include diff --git a/drivers/cdx/controller/cdx_rpmsg.c b/drivers/cdx/controller/cdx_rpmsg.c index f37e639d6ce3..04b578a0be17 100644 --- a/drivers/cdx/controller/cdx_rpmsg.c +++ b/drivers/cdx/controller/cdx_rpmsg.c @@ -7,7 +7,8 @@ #include #include -#include +#include +#include #include #include