Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1036029pxv; Thu, 15 Jul 2021 23:32:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYaKOWhgGaK9JVt2zm85Qj78cO3V2kpBxrJ5Lt9nOeDmHzgAbTfCKWjSEu7p+G6exhpH3y X-Received: by 2002:aa7:dbc8:: with SMTP id v8mr12151813edt.242.1626417129187; Thu, 15 Jul 2021 23:32:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626417129; cv=none; d=google.com; s=arc-20160816; b=FzZcSapKFslWUIQ3p/xAu+0Sz4k0rjiD6hlPeJi8EsHChJSvYz5ahlgXGybP/+gu8l Ck6+NBarrGETtEFI5DguMA7rvACP6Uxf3znDuCO4Kspp1LLkf/yOrhctYTbM5JaqN2gQ KkM55RzW2SAYSDPNfhU+XZ9xEnLUq9Q1voUiwmA7CL9t6eDQ67ooV89Ot5yCQae+8Lxm g3sQzfBGbydl/OShQ8yoV0ii4ndtGnUh5tcchiookptpmOlQ9WJAmsLfxItX59MjBe5A PPPSJ4DqpmjUmApBOcc5tGrYeLxFIyu2qgPdEDwHsDX3NkVDGFksW6iSK/UukkETqHBv OxkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=tLKolK5OmAn7uF79d3sCa6zew0z+6iyo4/D9/OzA2r8=; b=HhLY3mx7YExKZDOTHx6euDwL9sAZV5x3Q6Sb1HZBADzhtfM13zSzAjh5JD4WCItfse vf4bn9d3uzW5fP38NhTZxmZK+8E198HYWq2Kk6Vf2LietcQ8jXZOvzpWh+XNYyuh1h7u HgyGknGQTgqCZgAt/r4j1KZfWdjQ4/TfgPw73JnGbnsZ594Xqk8+TgGwRHkOBYQDbmB1 0OPI15oCzBUOVOdnLKOzvf/S2Qa+5APETIOOlREWovmjbbENzYaEviuQv+CKQ5iLIjaw 2UtRZzu+b7GkBbXxVm7tOP8eWbI727L+T/Qh2cDN8XXFGF+4FiXJZAVCkWgItpRex3H5 nzSw== ARC-Authentication-Results: i=1; mx.google.com; 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 j26si9632114edt.98.2021.07.15.23.31.46; Thu, 15 Jul 2021 23:32:09 -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; 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 S235006AbhGPGc1 (ORCPT + 99 others); Fri, 16 Jul 2021 02:32:27 -0400 Received: from verein.lst.de ([213.95.11.211]:41920 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230011AbhGPGc1 (ORCPT ); Fri, 16 Jul 2021 02:32:27 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id DAEDE67373; Fri, 16 Jul 2021 08:29:28 +0200 (CEST) Date: Fri, 16 Jul 2021 08:29:28 +0200 From: Christoph Hellwig To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, iommu@lists.linux-foundation.org, linux-parisc@vger.kernel.org, xen-devel@lists.xenproject.org, Christoph Hellwig , Marek Szyprowski , Robin Murphy , Stephen Bates , Martin Oliveira Subject: Re: [PATCH v1 01/16] dma-mapping: Allow map_sg() ops to return negative error codes Message-ID: <20210716062928.GA13345@lst.de> References: <20210715164544.6827-1-logang@deltatee.com> <20210715164544.6827-2-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715164544.6827-2-logang@deltatee.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 10:45:29AM -0600, Logan Gunthorpe wrote: > + * dma_map_sgtable() will return the error code returned and convert > + * a zero return (for legacy implementations) into -EINVAL. > + * > + * dma_map_sg() will always return zero on any negative or zero > + * return to satisfy its own calling convention. > */ I don't think this belongs here. > +EXPORT_SYMBOL(dma_map_sgtable); EXPORT_SYMBOL_GPL, please.