From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B314BA30 for ; Mon, 6 Nov 2023 07:37:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: by verein.lst.de (Postfix, from userid 2407) id 489A96732D; Mon, 6 Nov 2023 08:37:24 +0100 (CET) Date: Mon, 6 Nov 2023 08:37:24 +0100 From: Christoph Hellwig To: Jia He Cc: Christoph Hellwig , Marek Szyprowski , Robin Murphy , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, nd@arm.com Subject: Re: [PATCH v4 1/2] dma-mapping: move dma_addressing_limited() out of line Message-ID: <20231106073724.GA17734@lst.de> References: <20231028102059.66891-1-justin.he@arm.com> <20231028102059.66891-2-justin.he@arm.com> Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231028102059.66891-2-justin.he@arm.com> User-Agent: Mutt/1.5.17 (2007-11-01) > +bool dma_addressing_limited(struct device *dev) > +{ > + return min_not_zero(dma_get_mask(dev), dev->bus_dma_limit) < > + dma_get_required_mask(dev); > +} > +EXPORT_SYMBOL(dma_addressing_limited); I've changed this to an EXPORT_SYMBOL_GPL to match dma_get_required_mask.