From patchwork Tue Jul 18 14:31:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 13318260 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 48179C0015E for ; Wed, 19 Jul 2023 05:57:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=EZqBnhNpgxxhJhl7oFHYEHXvpvSS7Lm+dnzPRHcehuE=; b=AtG4J6xfJzl4Mi RfmlUwGnYinAxunbIhr8bOi+zYxR6uN6T+woo5pmmtKt5ZSjOyDThJYF+dwjCg3EFs/YZ2A6wNVrD nu8mtTNtMxZSD2YeCc0+JuVPZGMJrJ8JLD7YDF4wQxYMaX2+JRiC6bnxL7GYC2lVAKmq12s31gQ1T R1T2GQWMJEct9mAbTFI337mzXPwpkr1fAsN5F8EO0/1pqo+BcthoOCxesMMm/laN2yedqyyHjfjaU OVl9g05rh1ExBs4wLFL66ZZxGpcNIniPrFbNpPYKR8fa6HsvvcyYJxEum63vdhD6xa3G5cRB5msBt uYhL9k+/m5CFFmr7S74g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qM0Bb-005TYc-26; Wed, 19 Jul 2023 05:57:19 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM0BX-005TV5-15 for linux-arm-kernel@bombadil.infradead.org; Wed, 19 Jul 2023 05:57:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=YznJl7K4HxOCA6IwCwk9wKz/SlLi0Se2eMFSXW+WHCE=; b=ljzU9EDMHzCIyYDVOrg7qEReYj o1/+jJB9DaesTgfbQHrQ8bM+UIuJqCNbwLO8Fyw6yzyRy+CtYofp3Xx0nyiXvfJPgvQVhVF/mtdkW 9lhE5VKAOyxHLTZXSMn/+e7tPzcR/hZti7D9sa7qsRh30rEft+XeW7AI7Ymwcm0w6TUNOeiwNbWIS B78illU28dnYNrOoXgbwHJzftx0s7rD3pB9ZWxeFhRJZ+l/kFsFlisrTal69zKp0JiIBjuqz2+cON LJcO+Cg1SbSBIDhFLnoEhXujJy2QmPKickK+6oW842jCjONyKFVfY9GVUHEQPPHfVVZznuUOyBdny IIxzfRjg==; Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLljx-00Bdc8-16 for linux-arm-kernel@lists.infradead.org; Tue, 18 Jul 2023 14:31:51 +0000 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 301A8615FB; 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230718_153149_894878_6DC6D5DB X-CRM114-Status: GOOD ( 12.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 --- 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/hwtracing/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 diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwtracing/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