Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp671216pxj; Fri, 14 May 2021 12:41:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxD9BHsrcZNcS8OpAGtH1Jmck3o1fZiqL0Ss6oFWwDuWmp0bCq5rBmIezvMC4MTuc10wjf X-Received: by 2002:a50:cdd1:: with SMTP id h17mr57587699edj.178.1621021268059; Fri, 14 May 2021 12:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621021268; cv=none; d=google.com; s=arc-20160816; b=yRU7xH77kuu2Hkki9cYHEBLab7mQPbrOSXbvu+lrtcuHQ3BDVcq8kqs1Yrmq+ZVzSH TL5sKN+NkYMBMF4LXvok0zi4vkO6sE5l/P0/S5bAsHSoV+nXlBGGENJaR7ApP3WmOT1N XaECAh4i3JIE8AjdhfQcX7Zgqk+7MOywmlJdUmAkk9yhWdfSBJsGd/sIfm9zwoxESFA8 72SByN5qj/rQD1j7weX7h5uWQiT69bJom0jjs8ZgLMX2UeE+lW06V5nebVR0EmD9vUV+ WkFrY55HTwx0AgDHTBrdgU6EyfliFlL0F+OqAWu1NvVeuRCLZU6VSe4ABDsIqJffhVx0 Ox9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:dkim-signature; bh=E4eKfLLPwxlNLjuttUuI8VaOne71TO7fgDfREp6VqWo=; b=gz8RJ0JeLCuOb9xqq3rrSfIT021PixoUH+OQiArxdgpaxd3Xf1nwDdbJrATERDWbvJ Npe+rC0t1Vu7Yefco4Vr3VcRGY2FxJ69poOY0LGcT31l5RqmonaHeR1MJv1+/5Hc9YWy 7EJdKOBEZczNXVnvlw2thFkJ6GM0umsSuZ5Apci54DKV1VftXgw0FSKJKCoSd6WmX59/ QGtJ/j9spaHWI51L9v9StGYD4Hyqr7d3TScsKbxTm/b5f5jJKHRSJhUA1pE7W45z4Mp0 FNFncd4pg+JVcVqtFNlhBAT/dwkmFBqDfkFBCehTE8M/QrQWOodZ4QSLyIWehOTY/e9X b4oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=sPRxOlEM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si6840481ejp.651.2021.05.14.12.40.44; Fri, 14 May 2021 12:41:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=sPRxOlEM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233809AbhENQRP (ORCPT + 99 others); Fri, 14 May 2021 12:17:15 -0400 Received: from ale.deltatee.com ([204.191.154.188]:60748 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233166AbhENQRO (ORCPT ); Fri, 14 May 2021 12:17:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:content-disposition; bh=E4eKfLLPwxlNLjuttUuI8VaOne71TO7fgDfREp6VqWo=; b=sPRxOlEMD/ZVQ88LgoGLL9OjBW Wx0+B2uNVHava/VVSM9gB4FJtOz6aiI72TospMuM4DTR6YiCUjKsyUOFus7PH/19HYF72JItnGrXW vLLue47wtV1XdyCo9lXQkyk8vp82wx6TPOdDnUwXhjOophg0NxfdhWMpLuolM5ISe/FynxCSvGtSn JJsuJooWId8Qr8z3RExNK6gc34i19s93IGYSCWBOAxS9DTtnHVWXzpIfK9FdD6uCsHV5a5kGmOum/ rXiAGakNoK/7PHlxa2iM/+f2Q+Ns8rzVCrKhqZN6zgA9a10xmb4hzYQ25BXQ/JHXfvK25hlMlmWo3 CP907NSA==; Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.92) (envelope-from ) id 1lhaTZ-00066P-MN; Fri, 14 May 2021 10:15:46 -0600 To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Stephen Bates , Dan Williams , Jason Gunthorpe , =?UTF-8?Q?Christian_K=c3=b6nig?= , John Hubbard , Don Dutile , Matthew Wilcox , Daniel Vetter , Jakowski Andrzej , Minturn Dave B , Jason Ekstrand , Dave Hansen , Xiong Jianxin , Bjorn Helgaas , Ira Weiny , Robin Murphy References: <20210513223203.5542-1-logang@deltatee.com> <20210513223203.5542-9-logang@deltatee.com> <20210514135126.GB4715@lst.de> From: Logan Gunthorpe Message-ID: <241e7dad-8d38-9f0c-5e54-8b7df32b8bac@deltatee.com> Date: Fri, 14 May 2021 10:15:44 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210514135126.GB4715@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: robin.murphy@arm.com, ira.weiny@intel.com, helgaas@kernel.org, jianxin.xiong@intel.com, dave.hansen@linux.intel.com, jason@jlekstrand.net, dave.b.minturn@intel.com, andrzej.jakowski@intel.com, daniel.vetter@ffwll.ch, willy@infradead.org, ddutile@redhat.com, jhubbard@nvidia.com, christian.koenig@amd.com, jgg@ziepe.ca, dan.j.williams@intel.com, sbates@raithlin.com, iommu@lists.linux-foundation.org, linux-mm@kvack.org, linux-pci@vger.kernel.org, linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, hch@lst.de X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH v2 08/22] dma-mapping: Allow map_sg() ops to return negative error codes X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-05-14 7:51 a.m., Christoph Hellwig wrote: >> +int __dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, int nents, >> enum dma_data_direction dir, unsigned long attrs); > > I don't think it makes sense to expose this __dma_map_sg_attrs helper. > Just keep it static and move the sgtable helper to kernel/dma/mapping.c > as well. Makes sense. I'll fix this for v3. Logan