From patchwork Fri Jul 14 17:48:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 120613 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2664551vqm; Fri, 14 Jul 2023 10:59:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlHuEUbLOPWC/nhO0HmZ7XnTKhvbWFDzx5Wt9fTG1PZY1EupgqAb/w90A0YqW0SJKUdChMEs X-Received: by 2002:a05:6808:bcc:b0:3a3:fa07:c952 with SMTP id o12-20020a0568080bcc00b003a3fa07c952mr6599313oik.24.1689357564888; Fri, 14 Jul 2023 10:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689357564; cv=none; d=google.com; s=arc-20160816; b=Nyq6NoDySVU8EIduN3OOo+2XcbJCX0H78MYkro1FuY2+4j09W+NbnfVy2XTyR9s10Z i0M9c3MDLbsHfJNOrSc7lhMU3JkedbRv9XolU1HGrOqTYvqkMZXxRInpVAGebBqWPJ0y RLMUZCu/Rjlbs6P0xXgCXKnAcpLFic+jsCEnIA2OsLAxdWDyam/jMKLmGaRtWo0tRunY AJwaB6zHwdnEuwZlvNxyPmH/2NMyc0bbXbPNHqX6bCjdP2NC3W8Y5rBzhkkOhALVeBID ga+Go61fvkT8cEqOeiT6Ql45j8NCsDC+hsPXRowE6m5fAcOk3/fEBORC0GFqE7nWWcB5 kFYw== 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; bh=Gv6mglAVvH2vWt/oL/OorStmbFmB+aPDGFPGYKqJNFM=; fh=H0J6NLEtmDzGaxk4XM93hR4aOXql8fxH6UGH6y6Nceg=; b=f9UXsDHPQjFwecM78yLAjwMjd/winxQexbtfCUDEtT9PnbshdFd9/nyc2yv2Q/UINl xXf6iBByKJB/R/nUZTZ1oVhJeU05iANdqGmdSUlFJV3Ho/nOFtmatMXCqbvuLjS4U3Md mI329b90jnIUPVU3f6uw8lLy4Y4L8lNGubV2Xc4xJ/NoOLnicrSH2jSFEpqBDYYVjxr7 y4Dq/+iX1qfnciy58crvcNw0/xBsPRjKdfw/fQZoK9unXBTCr7e2V7hI8lRERLAUae4E Tp7AEpPgbwLr5BrYS/Eu3+xvxvHTVZBbRxK2oOlvC21hidJFkb28dlVTewRn6m/v3iKG xzVg== ARC-Authentication-Results: i=1; mx.google.com; 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 l9-20020a17090aec0900b002676a1d3249si1554627pjy.143.2023.07.14.10.59.11; Fri, 14 Jul 2023 10:59:24 -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; 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 S236437AbjGNRvJ (ORCPT + 99 others); Fri, 14 Jul 2023 13:51:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236342AbjGNRu6 (ORCPT ); Fri, 14 Jul 2023 13:50:58 -0400 Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82DB83C27; Fri, 14 Jul 2023 10:50:31 -0700 (PDT) Received: by mail-io1-f47.google.com with SMTP id ca18e2360f4ac-77a62a84855so87703039f.1; Fri, 14 Jul 2023 10:50:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689356956; x=1691948956; 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=Gv6mglAVvH2vWt/oL/OorStmbFmB+aPDGFPGYKqJNFM=; b=IljuEB13oD1KcBnLQUhz0Ns/hkNNrMG6m4kBWonCNae3C7D9yc/WN3F1ANM/Z7mnyU SskeDX3Uv5G8mQczuWBnjwh6Cb9aKgrF6zXDAVadBuFFqpchRWEc0bRX/5OG1UgXnhnQ e7Hlirr8y5uML0sAfxHWVmmy+1Zy3Lgpv1LywGfcd6X1oVT9aRKDYOP8Vp6xSpy7Yzhb GrKqNMShAdFNyK2Heoz6a2l8oFFsiH/8Hi5eJIZQToP7azqTghPfcwnOTukeuDcu8lov PXfoHy0SLxhi8naCu4rVpu0GeIwXxExalR9iYNtGyw/LlfQKizt4dBTs2vuetLigOBbH fCbg== X-Gm-Message-State: ABy/qLZKV7NGyCvxlT4F6mUlU2L4SjWKNYB22NSqbNftcGnzfg5frlO3 tjWNaVyK/tJyDKFZf+PJRw== X-Received: by 2002:a92:c081:0:b0:347:6d5f:ab2f with SMTP id h1-20020a92c081000000b003476d5fab2fmr4792743ile.6.1689356956095; Fri, 14 Jul 2023 10:49:16 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id o17-20020a92c691000000b00345d00dc3fdsm2850838ilg.78.2023.07.14.10.49.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:49:15 -0700 (PDT) Received: (nullmailer pid 4061876 invoked by uid 1000); Fri, 14 Jul 2023 17:48:35 -0000 From: Rob Herring To: Jiucheng Xu , Will Deacon , Mark Rutland , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Frank Li , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] drivers/perf: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:48:31 -0600 Message-Id: <20230714174832.4061752-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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: 1771419797760139204 X-GMAIL-MSGID: 1771419797760139204 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/perf/amlogic/meson_ddr_pmu_core.c | 2 -- drivers/perf/arm-cci.c | 5 +---- drivers/perf/arm_dsu_pmu.c | 2 +- drivers/perf/arm_pmu_platform.c | 1 - drivers/perf/arm_spe_pmu.c | 3 +-- drivers/perf/fsl_imx8_ddr_perf.c | 3 +-- drivers/perf/fsl_imx9_ddr_perf.c | 4 +--- drivers/perf/marvell_cn10k_ddr_pmu.c | 3 +-- drivers/perf/marvell_cn10k_tad_pmu.c | 3 +-- 9 files changed, 7 insertions(+), 19 deletions(-) diff --git a/drivers/perf/amlogic/meson_ddr_pmu_core.c b/drivers/perf/amlogic/meson_ddr_pmu_core.c index 0b24dee1ed3c..bbc7285fd934 100644 --- a/drivers/perf/amlogic/meson_ddr_pmu_core.c +++ b/drivers/perf/amlogic/meson_ddr_pmu_core.c @@ -9,8 +9,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/drivers/perf/arm-cci.c b/drivers/perf/arm-cci.c index 998259f1d973..61de861eaf91 100644 --- a/drivers/perf/arm-cci.c +++ b/drivers/perf/arm-cci.c @@ -7,10 +7,7 @@ #include #include #include -#include -#include -#include -#include +#include #include #include #include diff --git a/drivers/perf/arm_dsu_pmu.c b/drivers/perf/arm_dsu_pmu.c index fe2abb412c00..8223c49bd082 100644 --- a/drivers/perf/arm_dsu_pmu.c +++ b/drivers/perf/arm_dsu_pmu.c @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/perf/arm_pmu_platform.c b/drivers/perf/arm_pmu_platform.c index 933b96e243b8..3596db36cbff 100644 --- a/drivers/perf/arm_pmu_platform.c +++ b/drivers/perf/arm_pmu_platform.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/perf/arm_spe_pmu.c b/drivers/perf/arm_spe_pmu.c index b9ba4c4fe5a2..d2b0cbf0e0c4 100644 --- a/drivers/perf/arm_spe_pmu.c +++ b/drivers/perf/arm_spe_pmu.c @@ -25,8 +25,7 @@ #include #include #include -#include -#include +#include #include #include #include diff --git a/drivers/perf/fsl_imx8_ddr_perf.c b/drivers/perf/fsl_imx8_ddr_perf.c index 5222ba1e79d0..1cb3861ab0e0 100644 --- a/drivers/perf/fsl_imx8_ddr_perf.c +++ b/drivers/perf/fsl_imx8_ddr_perf.c @@ -10,10 +10,9 @@ #include #include #include -#include -#include #include #include +#include #include #define COUNTER_CNTL 0x0 diff --git a/drivers/perf/fsl_imx9_ddr_perf.c b/drivers/perf/fsl_imx9_ddr_perf.c index 71d5b07e3aff..5cf770a1bc31 100644 --- a/drivers/perf/fsl_imx9_ddr_perf.c +++ b/drivers/perf/fsl_imx9_ddr_perf.c @@ -7,9 +7,7 @@ #include #include #include -#include -#include -#include +#include #include /* Performance monitor configuration */ diff --git a/drivers/perf/marvell_cn10k_ddr_pmu.c b/drivers/perf/marvell_cn10k_ddr_pmu.c index b94a5f6cc22b..524ba82bfce2 100644 --- a/drivers/perf/marvell_cn10k_ddr_pmu.c +++ b/drivers/perf/marvell_cn10k_ddr_pmu.c @@ -8,11 +8,10 @@ #include #include #include -#include -#include #include #include #include +#include /* Performance Counters Operating Mode Control Registers */ #define DDRC_PERF_CNT_OP_MODE_CTRL 0x8020 diff --git a/drivers/perf/marvell_cn10k_tad_pmu.c b/drivers/perf/marvell_cn10k_tad_pmu.c index 3972197e2210..fec8e82edb95 100644 --- a/drivers/perf/marvell_cn10k_tad_pmu.c +++ b/drivers/perf/marvell_cn10k_tad_pmu.c @@ -6,10 +6,9 @@ #define pr_fmt(fmt) "tad_pmu: " fmt +#include #include #include -#include -#include #include #include #include