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: 122076 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1795051vqt; Tue, 18 Jul 2023 07:39:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlFyYhxlX5gFlXuiYC+7gugiyAJLfiA2CWEgM2SP7vJCkBn14lLq2Vx6VFK7WJUhw1HdoOfs X-Received: by 2002:a17:907:2d8d:b0:992:bc8:58e4 with SMTP id gt13-20020a1709072d8d00b009920bc858e4mr110257ejc.20.1689691185871; Tue, 18 Jul 2023 07:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689691185; cv=none; d=google.com; s=arc-20160816; b=ShFfOcsWP86jUu9db8H2pIkpR1qWonuKlbeZTD6YrNOMSkJgwSYrJ7gnQpXy//Wu6R 9c87HE3hfjLyP0qvL4beCUQpS7lVND86XrnV/4BFzwYP5pix8khchim8nNR5CfO5C2eU ouKN4oIrUsUn7wneOv2v9P8kp1hO84SYIQhO55gEO/7Ya5DdI7eH2aq5aRX5tNJfiyXL y49yvjGvhjXL9atkhMlQHLmkTk265wEwCiH9lMuxug6Euo52ZzEUBAyaaTTK6fTGXxu/ Q0S7XsWtYO8hTXkMw4Fd3dFwdJ7nM48FyR4YyqRLPxzLQcCZDpcvUmmCPttP1Gq+nRCS 5aYQ== 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=YznJl7K4HxOCA6IwCwk9wKz/SlLi0Se2eMFSXW+WHCE=; fh=hWiAyP7IT1q6cJXfMtp4VLmzAAQluhE3Q4SZVf8fwfk=; b=Rz4YrV2Oa5eGigLbi8M1vcmw7hl6jAgkXFY6cdNbmqn7AH+7Qm1GpbbGlon7Y9lA2J EWzgcjb3XozlIn4w2dQmQxBRBKJa4LVie9vm39UGlhNNlMZeZjSlpQOGasiY2vKPaEcb p2AtgwJSW97h95mLAM9tUJ9MYjt2fFpzldE5CPrJ7wsXACBvroj5csfLe7rVN9aNkISi QA7CN73lBWCm0Yif0PvXuYLsZkdNlRh/KuY+IKE6sko2Qy/yFxdAFA1WANSaXd3yW91C voJ7fBlZGdMPIejJBTmz/QFXDj/sPQARQeUUx7Q4dWXNIrJCsreiYE3pNF7WgrPRpDgu ZYDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CGkea7uN; 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 ja11-20020a170907988b00b00992bd86ece6si1264483ejc.725.2023.07.18.07.39.21; Tue, 18 Jul 2023 07:39:45 -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=CGkea7uN; 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 S233313AbjGROcs (ORCPT + 99 others); Tue, 18 Jul 2023 10:32:48 -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 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: 1771769624931903695 X-GMAIL-MSGID: 1771769624931903695 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