From nobody Sun Sep 7 13:32:29 2025 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 0F014C001DC for ; Tue, 18 Jul 2023 14:32:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233320AbjGROct (ORCPT ); Tue, 18 Jul 2023 10:32:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232654AbjGROcl (ORCPT ); Tue, 18 Jul 2023 10:32:41 -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 2088F19A8; Tue, 18 Jul 2023 07:31:44 -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 2FEE9615F1; Tue, 18 Jul 2023 14:31:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9420C433CA; Tue, 18 Jul 2023 14:31:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689690693; bh=ba3m1s5WPrhUSyocwM9OpDXR60J3dyTCWqkB5ZsXqTU=; h=From:To:Cc:Subject:Date:From; b=CGkea7uNB7yXm/lGqzPbFWkizwThuRpV+QhDaIu4p4CI2EPiB+OHxY1rP+QppgZ6s 29N9d99mnaHOO6e7pHcv1IcEHIYTTgxtaqtLfjbHJZKe/WJwNWmQf3a8bOiPBDRR+M CLb0cSSK/Z80pqabj2JeEIa/nsPZS2uIW3ZrEtFpv+u6xwfQf0RBtTwpeTe9umOTn8 5CGT0wD6WVp+OPTQsSXtMd6Hi7C7EXQSrzXgoPOrkbh/zz3ykiUk0elWSlbAbFDM5j sCdcUFTfSz98Ka2/n5N9ZghuI1SdyK5t2muCjC6XzgS7OfthUru8wGznBVkb4vNGho tyqz2MaAJWG2w== Received: (nullmailer pid 1066123 invoked by uid 1000); Tue, 18 Jul 2023 14:31:32 -0000 From: Rob Herring To: Suzuki K Poulose , Mike Leach , James Clark , Leo Yan , Alexander Shishkin Cc: devicetree@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] hwtracing: coresight: Explicitly include correct DT includes Date: Tue, 18 Jul 2023 08:31:24 -0600 Message-Id: <20230718143124.1065949-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 --- v2: - Fix double include of of.h --- drivers/hwtracing/coresight/coresight-core.c | 2 +- drivers/hwtracing/coresight/coresight-platform.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtraci= ng/coresight/coresight-core.c index 118fcf27854d..9fabe00a40d6 100644 --- a/drivers/hwtracing/coresight/coresight-core.c +++ b/drivers/hwtracing/coresight/coresight-core.c @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include =20 diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwt= racing/coresight/coresight-platform.c index 3e2e135cb8f6..27ca22c5104f 100644 --- a/drivers/hwtracing/coresight/coresight-platform.c +++ b/drivers/hwtracing/coresight/coresight-platform.c @@ -9,9 +9,7 @@ #include #include #include -#include #include -#include #include #include #include --=20 2.40.1