From mboxrd@z Thu Jan 1 00:00:00 1970 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 74A20C28D13 for ; Mon, 22 Aug 2022 11:22:17 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=o+NvUCSIBx6xFULDuHXYNmzzC72alkMdVUS/XgKP8Ww=; b=cs4XjOncfC/+8Q 3ag29WqAm1IB207wfrHcMczLfd35UXtM4/htEaMRQYegzmYY4jK9Esl1q0IB6bgV3UFo+HOvQS1Nk mGY0p2/aR0T9zzwGYpsKzoAApHf8FX2cASaLrzTqU6cO56kLy84hkBzflSAYLA2ospOvqLFu8BFXw r1YVrKHTpS13ZCp1gpSy3Hss1M6qiRh9Z+6A+GOsOT9f9C1SbANeJ0fgbSwJBsIh1birYiG5xC79m l1tsK+IHgXY9fK0/WnPPJ4wtSFgnuCBBmDx2WVXflXGpwYhcHftsqcl0vLec2MRAXP+/u5db2ajMU D/kmpyJ02Fojz3zJ0TIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQ5US-0087Gb-AW; Mon, 22 Aug 2022 11:21:08 +0000 Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQ5UQ-0087Er-3k; Mon, 22 Aug 2022 11:21:06 +0000 Date: Mon, 22 Aug 2022 04:21:06 -0700 From: Christoph Hellwig To: Robin Murphy 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 Subject: Re: [PATCH 2/3] iommu/dma: Move public interfaces to linux/iommu.h Message-ID: References: <9cd99738f52094e6bed44bfee03fa4f288d20695.1660668998.git.robin.murphy@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <9cd99738f52094e6bed44bfee03fa4f288d20695.1660668998.git.robin.murphy@arm.com> 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > 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. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel