Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2968147rwb; Mon, 7 Aug 2023 06:25:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGpx7SvphC15MGs5i2RuwlRk/3qw79bcksz+Uv3Ouudd32ycsajnzWdkBf/wCQk8Sg9WBjC X-Received: by 2002:a05:6a20:3c91:b0:135:4527:efcc with SMTP id b17-20020a056a203c9100b001354527efccmr10871061pzj.46.1691414720829; Mon, 07 Aug 2023 06:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691414720; cv=none; d=google.com; s=arc-20160816; b=i7hgKIaqYvNJFG7O9cd7DIL9Cy5YVZrTEGsfWJ5jJcioYFCC0a9F+A8zo06ETpNii+ bkVudDVDFxhn6Rx/CLboNJaT0TkoP47flZ23nYgPfrAya8twMctdPVaoMsjXbaoMAZ+S 7HcZuNfCG2nHgBp0Z8DwmcSyQt0/Yydx5wW2O6VwFr4I6dP4qo4TUztEkPnaVKEnvXFA 2yGsxDpl+a9efZ6JP65oqAJOI1f1oI45JtJQzhykv+5NB4kWUG9OMenOScvfzxipFyR0 VKzBXVSbtzbU8YBOEt1EFQmILsybsN+Ri4mHuATHvSKrjAbctfxI/K/9bVYIRy+s+VyX VZbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=nFtfUZdC6Yx1Lm+B86W082RNBRtmPC1wHZiDr0bm8RI=; fh=j/iNSeP/kKVc3IGoZFEmjQ5TXafPHiZQKIVTwXm4ewA=; b=yQpIfKwjvAjukCWtq60LsBr7guQ32Ipd2ZYkxK7k7WqcCB/maN8Ue3MdRZcDTnH5Lx +YCmiGib8qMDqBnB+E4MYe3cpSlA+wQaipRAPRJjkWXABgAnr19898NVfvlpf7pZdVWe cLdPKNYSP4Ak3AASW4dINDhLHZWehGxFGAczgKkXoRhlODUt6MoG8j4ys4N97MbfgzAc o1tsX3IJDqPkQafBiOAzBZTEOpaJJ5225EV3+Mo8ZOXnSeRJqhK41XQe58h4+1ir+nIR dYMBWWGfEWC64d5ehkszXqVuyN74YAIqRd8t1GCQt4bdFVZSIVVpO2bd0JHDvwips9Va Dgvg== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w30-20020a63af1e000000b00564f803b109si1636021pge.509.2023.08.07.06.25.08; Mon, 07 Aug 2023 06:25:20 -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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232835AbjHGMtq (ORCPT + 99 others); Mon, 7 Aug 2023 08:49:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230206AbjHGMto (ORCPT ); Mon, 7 Aug 2023 08:49:44 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2408710FE; Mon, 7 Aug 2023 05:49:43 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 76FA41FB; Mon, 7 Aug 2023 05:50:25 -0700 (PDT) Received: from [10.1.196.40] (e121345-lin.cambridge.arm.com [10.1.196.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3B8523F64C; Mon, 7 Aug 2023 05:49:40 -0700 (PDT) Message-ID: <3c387223-eb0e-a8af-b9de-20235d7337fa@arm.com> Date: Mon, 7 Aug 2023 13:49:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] iommu: Explicitly include correct DT includes Content-Language: en-GB To: Rob Herring , Will Deacon , Joerg Roedel , Rob Clark , Orson Zhai , Baolin Wang , Chunyan Zhang , Thierry Reding , Krishna Reddy , Jonathan Hunter , Jean-Philippe Brucker Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-tegra@vger.kernel.org, virtualization@lists.linux-foundation.org References: <20230714174640.4058404-1-robh@kernel.org> From: Robin Murphy In-Reply-To: <20230714174640.4058404-1-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 On 14/07/2023 6:46 pm, Rob Herring wrote: > 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. Thanks Rob; FWIW, Acked-by: Robin Murphy I guess you're hoping for Joerg to pick this up? However I wouldn't foresee any major conflicts if you do need to take it through the OF tree. Cheers, Robin. > Signed-off-by: Rob Herring > --- > drivers/iommu/arm/arm-smmu/arm-smmu-qcom-debug.c | 2 +- > drivers/iommu/arm/arm-smmu/arm-smmu.c | 1 - > drivers/iommu/arm/arm-smmu/qcom_iommu.c | 3 +-- > drivers/iommu/ipmmu-vmsa.c | 1 - > drivers/iommu/sprd-iommu.c | 1 + > drivers/iommu/tegra-smmu.c | 2 +- > drivers/iommu/virtio-iommu.c | 2 +- > 7 files changed, 5 insertions(+), 7 deletions(-) > > diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom-debug.c b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom-debug.c > index b5b14108e086..bb89d49adf8d 100644 > --- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom-debug.c > +++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom-debug.c > @@ -3,7 +3,7 @@ > * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. > */ > > -#include > +#include > #include > #include > > diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu.c b/drivers/iommu/arm/arm-smmu/arm-smmu.c > index a86acd76c1df..d6d1a2a55cc0 100644 > --- a/drivers/iommu/arm/arm-smmu/arm-smmu.c > +++ b/drivers/iommu/arm/arm-smmu/arm-smmu.c > @@ -29,7 +29,6 @@ > #include > #include > #include > -#include > #include > #include > #include > diff --git a/drivers/iommu/arm/arm-smmu/qcom_iommu.c b/drivers/iommu/arm/arm-smmu/qcom_iommu.c > index a503ed758ec3..cc3f68a3516c 100644 > --- a/drivers/iommu/arm/arm-smmu/qcom_iommu.c > +++ b/drivers/iommu/arm/arm-smmu/qcom_iommu.c > @@ -22,8 +22,7 @@ > #include > #include > #include > -#include > -#include > +#include > #include > #include > #include > diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c > index 9f64c5c9f5b9..0aeedd3e1494 100644 > --- a/drivers/iommu/ipmmu-vmsa.c > +++ b/drivers/iommu/ipmmu-vmsa.c > @@ -17,7 +17,6 @@ > #include > #include > #include > -#include > #include > #include > #include > diff --git a/drivers/iommu/sprd-iommu.c b/drivers/iommu/sprd-iommu.c > index 39e34fdeccda..51144c232474 100644 > --- a/drivers/iommu/sprd-iommu.c > +++ b/drivers/iommu/sprd-iommu.c > @@ -14,6 +14,7 @@ > #include > #include > #include > +#include > #include > #include > > diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c > index 1cbf063ccf14..e445f80d0226 100644 > --- a/drivers/iommu/tegra-smmu.c > +++ b/drivers/iommu/tegra-smmu.c > @@ -9,7 +9,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include > diff --git a/drivers/iommu/virtio-iommu.c b/drivers/iommu/virtio-iommu.c > index 3551ed057774..17dcd826f5c2 100644 > --- a/drivers/iommu/virtio-iommu.c > +++ b/drivers/iommu/virtio-iommu.c > @@ -13,7 +13,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include