Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6041498imu; Wed, 30 Jan 2019 07:50:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN5SWeqqSPOC9WzgRoKIPf0fjxFiPcyt1vteBd6YJa6BZa9WkgF2XM/bVPObwrWI8UBZXlJI X-Received: by 2002:a62:33c1:: with SMTP id z184mr30810100pfz.104.1548863435383; Wed, 30 Jan 2019 07:50:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548863435; cv=none; d=google.com; s=arc-20160816; b=zBFCz/E1HVjh2CCC90EFtLOCe6iKXYR6pyYZpYO9PCLGxLSja4y7MNcV0Jnr7DfOjy 2L9Z3r2GkBVAronT+t5GHNZJ62avpywYaqBPfDiHTgAgaAJBpYR9u5hAAOft2QDPxCoX dq6SqtCER1skAWMUvcy6iCHWuL1gbXvSzV64h4oV/tmHICLjQ7rVAe1ThN6p7IYOH1Ah 5hT79PogXFCh/WHiWyu7g3T9T8hlleQhE3UtA7apLj9parlIYVWZ3vz/p4C74D3R8uH5 sgYBJdS+dRHnDNCklVe9EpGctB+G4jiL6dG9kxilTPgcH6bQzVe44V9b4MGUZfBLD+c7 pM8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5LMDk2Zg3Oh66U/SGqnq2D3JsHGbMy6w0ZV85jvtLk8=; b=nhfyrs7A+bI4ODxHI45f7fCTbCL2R2XvDDrj3x4zFyC2yml3VoMq1xhmdMXh5mGco1 XQfuQD9eMHOVo9dBHJJTqlGEONJx13oLv6LqoIELMZ/dVlDA86oyiltduJZajRRAtUqA NIq3P0++3QKu03a+wI9luZGgXrkHmZ1arYA29xymyEJ9VCRivlUa+8ChgFWuleCOWn1T dXRUS2vZ8N34i0byBedwBAG9KqZbXnvSGgRklEMXsNOl6TAPWRLBg03xio1umyzPQWeq uHB4Jx24pwTxO3ZykKHgla6F3CXWqx2CbfsPzlk4C5rLJ2yv7YdgTi8k1gtTM8MqhT8q 9trQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f127si1768606pfc.69.2019.01.30.07.50.20; Wed, 30 Jan 2019 07:50:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731581AbfA3PtZ (ORCPT + 99 others); Wed, 30 Jan 2019 10:49:25 -0500 Received: from 8bytes.org ([81.169.241.247]:35894 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726439AbfA3PtZ (ORCPT ); Wed, 30 Jan 2019 10:49:25 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id 42238301; Wed, 30 Jan 2019 16:49:23 +0100 (CET) Date: Wed, 30 Jan 2019 16:49:23 +0100 From: Joerg Roedel 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" Subject: Re: [PATCH 4/5] virtio: Introduce virtio_max_dma_size() 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 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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