From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D73AD7B for ; Mon, 22 Aug 2022 12:55:20 +0000 (UTC) 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 6632912FC; Mon, 22 Aug 2022 05:55:23 -0700 (PDT) Received: from [10.57.15.77] (unknown [10.57.15.77]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4AEF13F718; Mon, 22 Aug 2022 05:55:17 -0700 (PDT) Message-ID: Date: Mon, 22 Aug 2022 13:55:11 +0100 Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 2/3] iommu/dma: Move public interfaces to linux/iommu.h Content-Language: en-GB To: Christoph Hellwig Cc: joro@8bytes.org, will@kernel.org, catalin.marinas@arm.com, jean-philippe@linaro.org, inki.dae@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, tglx@linutronix.de, maz@kernel.org, alex.williamson@redhat.com, cohuck@redhat.com, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org References: <9cd99738f52094e6bed44bfee03fa4f288d20695.1660668998.git.robin.murphy@arm.com> From: Robin Murphy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2022-08-22 12:21, Christoph Hellwig wrote: >> diff --git a/include/linux/iommu.h b/include/linux/iommu.h >> index 70393fbb57ed..79cb6eb560a8 100644 >> --- a/include/linux/iommu.h >> +++ b/include/linux/iommu.h >> @@ -1059,4 +1059,40 @@ void iommu_debugfs_setup(void); >> static inline void iommu_debugfs_setup(void) {} >> #endif >> >> +#ifdef CONFIG_IOMMU_DMA >> +#include > > I don't think msi.h is actually needed here. > > Just make the struct msi_desc and struct msi_msg forward declarations > unconditional and we should be fine. dma-iommu.c still needs to pick up msi.h for the actual definitions somehow, so it seemed logical to keep things the same shape as before. However I don't have a particularly strong preference either way. Thanks, Robin.