From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH 4/5] virtio: Introduce virtio_max_dma_size() Date: Wed, 30 Jan 2019 16:49:23 +0100 Message-ID: <20190130154922.GO32526@8bytes.org> References: <20190129084342.26030-1-joro@8bytes.org> <20190129084342.26030-5-joro@8bytes.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: "Lendacky, Thomas" Cc: "Michael S . Tsirkin" , Jason Wang , Konrad Rzeszutek Wilk , Christoph Hellwig , Jens Axboe , "virtualization@lists.linux-foundation.org" , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "jfehlig@suse.com" , "Grimm, Jon" , "Singh, Brijesh" , "jroedel@suse.de" List-Id: iommu@lists.linux-foundation.org Hi Tom, On Wed, Jan 30, 2019 at 03:10:29PM +0000, Lendacky, Thomas wrote: > On 1/29/19 2:43 AM, Joerg Roedel wrote: > > +size_t virtio_max_dma_size(struct virtio_device *vdev) > > +{ > > + size_t max_segment_size = SIZE_MAX; > > + > > + if (vring_use_dma_api(vdev)) > > + max_segment_size = dma_max_mapping_size(&vdev->dev); > > + > > + return max_segment_size; > > +} > > When I build with these patches and with the virtio devices as modules I > get a build failure. Looks like this needs an EXPORT_SYMBOL_GPL(). Thanks for pointing that out, I added the missing EXPORTs and will send a new version shortly. Regards, Joerg