From patchwork Fri Jul 14 17:46:11 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: 13314012 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 55FD9C001DC for ; Fri, 14 Jul 2023 17:47:06 +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=HC1Ji0y6pm+x4rGVE3Z3aBL2KJG1MOyI8GPOLZbb2SE=; b=BkPrWJRbADvfe9 l4jrssiat3jtKLBWgHkWoN2UTwjgTJ0W+lQYrrDHfRCi5dFNoxxAXwbzbjym4vt1SU+xTvDnlZUCp CchEavFJVKHvse8uWPp2aWw5bubPEsmQDyOhHYcAJiWl4KOb2XD5YnZzn9y6aiyBft42cb4aWQcr2 2ZYuBftVwPkf/Fzybwzs2pgrE8b7OsEx4R0Hs2ER0nBBEcFAfoPzY3tWQN0V4KNOhvmA67Fzud3GC S9bs1nYApEezRE24SUiAAK3I9/Cbzu9ubdjyC28Qd/eJPEeMkxrRLQWZ6D1F4Z1BN/kyS8h7Uk7Hm GpuinDjMsvLYenwnkVuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qKMsD-006oAt-28; Fri, 14 Jul 2023 17:46:33 +0000 Received: from mail-il1-f178.google.com ([209.85.166.178]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qKMsA-006oA4-30 for linux-arm-kernel@lists.infradead.org; Fri, 14 Jul 2023 17:46:32 +0000 Received: by mail-il1-f178.google.com with SMTP id e9e14a558f8ab-34617b29276so8041965ab.0 for ; Fri, 14 Jul 2023 10:46:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689356790; x=1691948790; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OZyx3eOZS66p/l1ekqweJ4x6pDgHSOvyvTBTGNC2XKI=; b=bU4hQENDkVKyD2RTFP6G9S4aaUAfgmcKITxDRljCFBbfVL3LGtdVkI0TPCLMvDtM+C wtfL8Ks+g5GVHpWJgWylakcsmf3qIUZuQXbzi3F068pyC0osLUuF01sLkOM/FkckuXw1 Eqy1oQfH9e8tFHkg9D6KdxYeaRm7B4Shbetrym9px+GsNEmY5/8llYvXCDPCPWGDyL0I QjDKGD0V3d65aPONzWbbLKmWOkv+oJCUgQoRgOCxPKIRNo1O0PhAWUEkaSUQmEppryeY ReIyLl+SZoqjoBbZ6MbDZWqg54Kc4x0m9dpIJETP7a6SeVpuRBlk76vc531dkv0/m5xk /juQ== X-Gm-Message-State: ABy/qLad772cSsR774lz2JsO8qeoXEGffbrDMC4IyNb6pS6rSe0s6++e 4yJcMblq1YRqb2uIhFDJ9w== X-Google-Smtp-Source: APBJJlE/vLL7hw1540hDUWgDuts5nMG5S1cadQvvGh0CS4HmHqYiA/2FCcR6l29BG1f/xzvUp0DNgQ== X-Received: by 2002:a05:6e02:1148:b0:343:ef5e:8286 with SMTP id o8-20020a056e02114800b00343ef5e8286mr2226321ill.7.1689356789836; Fri, 14 Jul 2023 10:46:29 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id k24-20020a02ccd8000000b0042b46224650sm2669864jaq.91.2023.07.14.10.46.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:46:29 -0700 (PDT) Received: (nullmailer pid 4057534 invoked by uid 1000); Fri, 14 Jul 2023 17:46:16 -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] hwtracing: coresight: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:46:11 -0600 Message-Id: <20230714174611.4057415-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-20230714_104630_971565_CB56623B X-CRM114-Status: GOOD ( 12.85 ) 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 --- drivers/hwtracing/coresight/coresight-core.c | 2 +- drivers/hwtracing/coresight/coresight-platform.c | 3 +-- 2 files changed, 2 insertions(+), 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..d94b0e77bcfc 100644 --- a/drivers/hwtracing/coresight/coresight-platform.c +++ b/drivers/hwtracing/coresight/coresight-platform.c @@ -9,9 +9,8 @@ #include #include #include -#include +#include #include -#include #include #include #include