Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3204530imu; Sat, 24 Nov 2018 00:03:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/W9dUhewJdPe2eKhqkxJmQdFReOmsGOAI7DGPZcayXZQPJZpH3LpSvlck/vDJ+lRw//rOyH X-Received: by 2002:a63:4c4e:: with SMTP id m14mr17192548pgl.173.1543046605733; Sat, 24 Nov 2018 00:03:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543046605; cv=none; d=google.com; s=arc-20160816; b=zwBcfZTdteN/rCCIvAhMFW24ZO/cGF3CYwG5hh/aZyEn+9yuwSStpy1DFoHvPuS/ne 7AumYnvL1yPiHG7Upchrc/5tkpgdlweUl7dh6+LqfbDLOm3GESMRWvrD096fEpTk4q9c KztQHsELr4BM+FY1U7spmp6gfgA4nSoX13PO4QqzC2d9U6SJTD08PbPZ1V8qc5zqduV1 cgWbH0ugFuyRkq70RK2UQxFnlmHmYp3tRPAqGbt0IDX5rTNV7ir52CjEzwM7SvxIHtZG dRW4T8K9v6qyU1QXpGwUhkBa4oHUGMoREaBmhqLAsHcsnzM8ot0V/hjuCn4lWuYJoReq 6NPQ== 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=4qpMxTJFpxFZM9zfeCuriRrPnCAxw4iPIbfLQksCuqI=; b=h8TxfVyVugIvRhakwj9kfeUgPYXKBi7VQXoixr36ydi6m6Vnf8EhmQN3UL3+Um5ong XKCwvSBc1G2hsTE24XiKeKED/KiMOH1DB1TuyHDTBidaJcT6RzM2s00zESYVkqXf3IqT 3UzRhWmy3pRQqUS3ihrk+azybNfTvnK8CD4XtZMChxFXMDQ9akADFyMgKTfwmxCDtcGr iOgSOKFqr22pdOSbrMHvPyxdfaONNCgvDyR4B0rAmtjgtYwiukTCOgPGlWz3Pc6Zg7Vu JFGeUPzhbnXLoRN9H9PhwLUJ90mAEa+9z7Jvp8FAM23rVVvYnFHBVToEI6bUpuFaOZB6 w+PQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 205si46042911pfa.199.2018.11.24.00.03.11; Sat, 24 Nov 2018 00:03:25 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408207AbeKWRiI (ORCPT + 99 others); Fri, 23 Nov 2018 12:38:08 -0500 Received: from verein.lst.de ([213.95.11.211]:34658 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733170AbeKWRiI (ORCPT ); Fri, 23 Nov 2018 12:38:08 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 77F5E68BC7; Fri, 23 Nov 2018 07:55:11 +0100 (CET) Date: Fri, 23 Nov 2018 07:55:11 +0100 From: Christoph Hellwig To: Linus Torvalds Cc: robin.murphy@arm.com, linux@armlinux.org.uk, Christoph Hellwig , linux-arch@vger.kernel.org, linux-alpha@vger.kernel.org, linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org, David Woodhouse , joro@8bytes.org, the arch/x86 maintainers , Linux List Kernel Mailing , iommu@lists.linux-foundation.org, jdmason@kudzu.us, xen-devel@lists.xenproject.org, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com Subject: Re: remove the ->mapping_error method from dma_map_ops V2 Message-ID: <20181123065511.GA17856@lst.de> References: <20181122140320.24080-1-hch@lst.de> <20181122170715.GI30658@n2100.armlinux.org.uk> <11829e3c-7302-f821-cf5c-863e5267a17b@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 22, 2018 at 09:55:25AM -0800, Linus Torvalds wrote: > No, the big immediate benefit of allowing "return -EINVAL" etc is > simply legibility and error avoidance. Well, I can tweak the last patch to return -EINVAL from dma_mapping_error instead of the old 1 is as bool true. The callers should all be fine, although I'd have to audit them. Still wouldn't help with being able to return different errors.