Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2315011rwa; Mon, 22 Aug 2022 05:59:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR4p2UVPF3e29G7JIJsmacJbOo3UNAkwPlHFzlRxwn0g89WNbyjyY3OCi4YIglAd/Uw3P9/a X-Received: by 2002:a05:6a00:23c1:b0:52e:28f5:4e13 with SMTP id g1-20020a056a0023c100b0052e28f54e13mr20934492pfc.20.1661173183809; Mon, 22 Aug 2022 05:59:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661173183; cv=none; d=google.com; s=arc-20160816; b=mF8ekEmxgQBbxAXvlpCVqaX1GnxEM+MD7Krw9hu4cNQADimyATrhLaQoW5D5wJLUPP ST4v7uafw5gPCfSxckO3m2VAKB3xImZsTGsT/U9jjbgfbOG2b1K2RnujOyW2G6Tkoyqu ovFEUSDR5RNGgCAYXP1xetllwHAcVhuq1wfQnAPs9kTkGTofTOW9Be7NTj/DzN42KoGx 2PRO3s846k5mwR9F8KxmChhvcgx+/zMcBS3OvSh7di8sKgSv2V6OQM4dh1IbJmrC5ZVA 0wTgrJtMxdUGLazg5fqksq8FTzjlJIHcjTUpYqJaliCVqNZkeRhBgvUMHilG+0MhMHrH 0t/Q== 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=nXsOEvyqNmlqqsUIkvKTvhoDuruDuWLsRKX7cWt3QTc=; b=ojzB3CZ0+lId5iqwM3OJquG6yGP4CpxLQ3BVV9/wQiV5LDW190xy1aPkPhDuYnOzt1 Fe6PKfYX4AykHu0vjkkeZjjnwWEe8wEZUrngh4T/nNSNMuZNvS0bO64NbBH7WssghRWU kbzSj0R9AH//GDmuFUzGW06rsSldhgKMSfHK4Ow6Mt5silTlFhtOQiy76TX+XsBRhY2M ySRANze5e9BySYTSF7ZbssPOCzoEHoq0N+JOsJbhHktnHJZ3c7/duOlrgbH1Hgv2XngV WjBCqJRD2iFgZg7j72q+B3Hg/qD7nIfPLoOPbr5zMcicphFoie2jBIqnqTYxaBT0/C8f hU6g== 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 n15-20020a170903110f00b0016ef524517bsi14115302plh.461.2022.08.22.05.59.31; Mon, 22 Aug 2022 05:59:43 -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 S234371AbiHVMzX (ORCPT + 99 others); Mon, 22 Aug 2022 08:55:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbiHVMzV (ORCPT ); Mon, 22 Aug 2022 08:55:21 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7D59D1901C; Mon, 22 Aug 2022 05:55:20 -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 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 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 X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 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.