From patchwork Fri Jul 14 17:49:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 120677 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2688799vqm; Fri, 14 Jul 2023 11:46:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlEfL7Zr9C6/87NpzyLjhGvRSC4zKAxvgI8pXiNSn3ba9hT3DSY3buAThR7cYwVSfKmUZVer X-Received: by 2002:a17:907:60d5:b0:98f:450e:fc20 with SMTP id hv21-20020a17090760d500b0098f450efc20mr4520308ejc.17.1689360395720; Fri, 14 Jul 2023 11:46:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689360395; cv=none; d=google.com; s=arc-20160816; b=yDzzVAFgtr9KsyreB6SZzrSBOYcZCDljm56juEdhctB4WVuB3953cpATWB2TktOzvt AUR4qOKsUpsweJZ8lQ0QSXwdJH7Kb/huYgDRNwjhvhDCM1c231Ubu1iniUv6wBvYwiVR htf+wKJnJ8/VOSA5fE2mLUZi4ulChkOdxRE9wknPMzXATw4Z6h6+Y40XbWlWj8OKE57A +VCYI997ViRUnla5CejIK2gmW019mVHyCalHxhr8xm4BzxN0mxVM4AAtpfRWyfaXmzgj so0q+p8LAN2hfcyfee1o0G1NliEo9tmBRn7ACeOQ6gvtVo9tf/1Bt+7/BXQWukWn+qxf b2vQ== 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=x7CAXtBYk6X27uebkH9zYJjyXa8Snp/PDN8dALPovlA=; fh=oz6sU6LGKm1udhmLV35FXbXzUV/AQwfP23SU76yb7Tg=; b=yFSGcsYCGVLsv2WKEgOiQ6jPjxt1xprHhIfYYEXigXeocYVO02CjaWD6LcZK8NohQm 8BrzTicXtw2kmn0lET3nia6lJiWRCkHhVo6uAMv00Z+REeYibjg13h1kd+CvVXMGpTtc 0LZGi1dMWfiv4nOrkt29lo83+XtMNLFgRLhEUivlcJ44uTLi/HO0Sr32XkAZR+iuQLnu Bc9uSwuEqGsSuzXx6jNvwFlBgdGfi+XB8IaR0uMh7TXhhHM6KJoBqDn5kvspRvsTiEc3 GAGcnNxDoGeGM/xrkib8JojmhswLdMj2CcK3s2U898tvub3I+NoA72MSyZAZn6sLJ05V Ytrw== 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 o14-20020a17090608ce00b0098655fb6608si9719096eje.158.2023.07.14.11.46.10; Fri, 14 Jul 2023 11:46:35 -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 S236810AbjGNSCB (ORCPT + 99 others); Fri, 14 Jul 2023 14:02:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236659AbjGNSBv (ORCPT ); Fri, 14 Jul 2023 14:01:51 -0400 Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AA85271E; Fri, 14 Jul 2023 11:01:06 -0700 (PDT) Received: by mail-qt1-f180.google.com with SMTP id d75a77b69052e-403a72df0a6so14163721cf.2; Fri, 14 Jul 2023 11:01:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689357597; x=1691949597; 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=x7CAXtBYk6X27uebkH9zYJjyXa8Snp/PDN8dALPovlA=; b=JmX461CvRYG9EcwGIjmYLjnjOkt96EvhB016+LFjFDpsoC7qYYg5p9pclaahu9smCD E7hEyh2fbOzFkvVqrBpDxlZLg7RBwcjm0clmfuAE7JAiR/M8gS4mCWoiUNaxiPeRenOQ AvjmHhxs+0cy+UUoW8NoZrQkLj4QDQdCAxZ8DV/dHpGi3+DiCu0GsgR/aY4HlNRg76QJ wDh3Bsv6dZoU+41bSZl1WLTHtIp3qUjLCDVumX8lZgUVc8dY6/0wJANziT6oXDR5ij1Y yEWNI78b333djghX5XNNdA1OTozCmmYKCdPJFrBMzqZ2Ze2zRB32C2NxAUPh/NqsarmB olUg== X-Gm-Message-State: ABy/qLYj9Gp3BseMeXhdBpvM4MQhYCWcbVvU4NmYq8+CbblfFD3rFsok dT/igrH002cbnv+HwgJ2rasYephMKDLV X-Received: by 2002:a92:d311:0:b0:346:77f5:116f with SMTP id x17-20020a92d311000000b0034677f5116fmr4943472ila.16.1689356987789; Fri, 14 Jul 2023 10:49:47 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id g7-20020a0566380bc700b0042b2e309f97sm2656917jad.177.2023.07.14.10.49.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:49:47 -0700 (PDT) Received: (nullmailer pid 4063624 invoked by uid 1000); Fri, 14 Jul 2023 17:49:37 -0000 From: Rob Herring To: Bjorn Andersson , Mathieu Poirier , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Andy Gross , Konrad Dybcio , Patrice Chotard , Maxime Coquelin , Alexandre Torgue Cc: devicetree@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH] remoteproc: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:49:33 -0600 Message-Id: <20230714174935.4063513-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_H3, RCVD_IN_MSPIKE_WL,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: 1771422766087109242 X-GMAIL-MSGID: 1771422766087109242 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/remoteproc/imx_dsp_rproc.c | 3 +-- drivers/remoteproc/imx_rproc.c | 2 +- drivers/remoteproc/omap_remoteproc.c | 3 ++- drivers/remoteproc/pru_rproc.c | 3 ++- drivers/remoteproc/qcom_q6v5_adsp.c | 2 +- drivers/remoteproc/qcom_q6v5_mss.c | 3 ++- drivers/remoteproc/qcom_q6v5_pas.c | 2 +- drivers/remoteproc/qcom_sysmon.c | 1 - drivers/remoteproc/qcom_wcnss.c | 2 +- drivers/remoteproc/qcom_wcnss_iris.c | 1 + drivers/remoteproc/rcar_rproc.c | 3 ++- drivers/remoteproc/st_slim_rproc.c | 1 - drivers/remoteproc/stm32_rproc.c | 4 ++-- drivers/remoteproc/ti_k3_dsp_remoteproc.c | 2 +- drivers/remoteproc/ti_k3_r5_remoteproc.c | 3 ++- drivers/remoteproc/wkup_m3_rproc.c | 2 +- 16 files changed, 20 insertions(+), 17 deletions(-) diff --git a/drivers/remoteproc/imx_dsp_rproc.c b/drivers/remoteproc/imx_dsp_rproc.c index d95fa5586189..8fcda9b74545 100644 --- a/drivers/remoteproc/imx_dsp_rproc.c +++ b/drivers/remoteproc/imx_dsp_rproc.c @@ -12,8 +12,7 @@ #include #include #include -#include -#include +#include #include #include #include diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index f9874fc5a80f..b403a37ddb02 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -13,9 +13,9 @@ #include #include #include +#include #include #include -#include #include #include #include diff --git a/drivers/remoteproc/omap_remoteproc.c b/drivers/remoteproc/omap_remoteproc.c index 82ed90f03d91..8f50ab80e56f 100644 --- a/drivers/remoteproc/omap_remoteproc.c +++ b/drivers/remoteproc/omap_remoteproc.c @@ -19,7 +19,8 @@ #include #include #include -#include +#include +#include #include #include #include diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c index 2874c8d324f7..5b2dc75836fc 100644 --- a/drivers/remoteproc/pru_rproc.c +++ b/drivers/remoteproc/pru_rproc.c @@ -16,8 +16,9 @@ #include #include #include -#include +#include #include +#include #include #include #include diff --git a/drivers/remoteproc/qcom_q6v5_adsp.c b/drivers/remoteproc/qcom_q6v5_adsp.c index 6777a3bd6226..7733be477db5 100644 --- a/drivers/remoteproc/qcom_q6v5_adsp.c +++ b/drivers/remoteproc/qcom_q6v5_adsp.c @@ -14,8 +14,8 @@ #include #include #include +#include #include -#include #include #include #include diff --git a/drivers/remoteproc/qcom_q6v5_mss.c b/drivers/remoteproc/qcom_q6v5_mss.c index 70bffc9f33f6..76c546871a94 100644 --- a/drivers/remoteproc/qcom_q6v5_mss.c +++ b/drivers/remoteproc/qcom_q6v5_mss.c @@ -15,9 +15,10 @@ #include #include #include +#include #include -#include #include +#include #include #include #include diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 3153d82037e7..faec3a3d8e4e 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -13,8 +13,8 @@ #include #include #include +#include #include -#include #include #include #include diff --git a/drivers/remoteproc/qcom_sysmon.c b/drivers/remoteproc/qcom_sysmon.c index 746f56b4bafb..c24e4a882873 100644 --- a/drivers/remoteproc/qcom_sysmon.c +++ b/drivers/remoteproc/qcom_sysmon.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/remoteproc/qcom_wcnss.c b/drivers/remoteproc/qcom_wcnss.c index 1ed0647bc962..c109096bbfe3 100644 --- a/drivers/remoteproc/qcom_wcnss.c +++ b/drivers/remoteproc/qcom_wcnss.c @@ -14,8 +14,8 @@ #include #include #include +#include #include -#include #include #include #include diff --git a/drivers/remoteproc/qcom_wcnss_iris.c b/drivers/remoteproc/qcom_wcnss_iris.c index 09720ddddc85..dd36fd077911 100644 --- a/drivers/remoteproc/qcom_wcnss_iris.c +++ b/drivers/remoteproc/qcom_wcnss_iris.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/remoteproc/rcar_rproc.c b/drivers/remoteproc/rcar_rproc.c index 90e8769d5624..cc17e8421f65 100644 --- a/drivers/remoteproc/rcar_rproc.c +++ b/drivers/remoteproc/rcar_rproc.c @@ -5,8 +5,9 @@ #include #include -#include +#include #include +#include #include #include #include diff --git a/drivers/remoteproc/st_slim_rproc.c b/drivers/remoteproc/st_slim_rproc.c index 4ed9467897e5..d17719384c16 100644 --- a/drivers/remoteproc/st_slim_rproc.c +++ b/drivers/remoteproc/st_slim_rproc.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c index cf073bac79f7..98234b44f038 100644 --- a/drivers/remoteproc/stm32_rproc.c +++ b/drivers/remoteproc/stm32_rproc.c @@ -12,9 +12,9 @@ #include #include #include -#include -#include +#include #include +#include #include #include #include diff --git a/drivers/remoteproc/ti_k3_dsp_remoteproc.c b/drivers/remoteproc/ti_k3_dsp_remoteproc.c index ec626a37fef6..ef8415a7cd54 100644 --- a/drivers/remoteproc/ti_k3_dsp_remoteproc.c +++ b/drivers/remoteproc/ti_k3_dsp_remoteproc.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/remoteproc/ti_k3_r5_remoteproc.c b/drivers/remoteproc/ti_k3_r5_remoteproc.c index 23fe44d4d7a5..ad3415a3851b 100644 --- a/drivers/remoteproc/ti_k3_r5_remoteproc.c +++ b/drivers/remoteproc/ti_k3_r5_remoteproc.c @@ -12,9 +12,10 @@ #include #include #include +#include #include -#include #include +#include #include #include #include diff --git a/drivers/remoteproc/wkup_m3_rproc.c b/drivers/remoteproc/wkup_m3_rproc.c index 120dc7d2dac1..36a55f7ffa64 100644 --- a/drivers/remoteproc/wkup_m3_rproc.c +++ b/drivers/remoteproc/wkup_m3_rproc.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include #include