Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5310317ima; Tue, 5 Feb 2019 09:35:40 -0800 (PST) X-Google-Smtp-Source: AHgI3IbClOGyAxpSChn260LDBDoUXvnS8kwrIZyJJrCRVjb6gE5+ihx3mDnqWfZlhiWBij2UySoA X-Received: by 2002:a63:4a4d:: with SMTP id j13mr5622432pgl.127.1549388140011; Tue, 05 Feb 2019 09:35:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549388140; cv=none; d=google.com; s=arc-20160816; b=oh6Cu5YEaG2AVXVTuoBvzcjPuHa//pzGIODMrK98VazZSZDqSdwDuD6J3B8QXe5HvM Cu+UBJMtL3vANvd86rzwzJaOKulYyfozhMSKE1HsEruo9MxDxbqo72pSbAqzzmGt1Cwa T1/QqeB+2lGm8g1nzytP5vUEsB84vqU2WGPkqyfEnFJJLSUf9RCa3jMqTwXzwsuVjyL5 2k4rVWVuEKUvfADESAtoLci8lKS3btICHybYopy4fuqNhrHXFSnXgJhblUjMgvBfXXwH Yth2FATq1bwHlj4EZqgdBUOGorz8v8M6J3LrnzLi4zo4HR5WPMMgPJyn520GfGCCKNcm N1kg== 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=wbbHJXIShrz6TPTrjQS9AktfJsB2jZ+oWc7mFy+Pqjg=; b=RHJHfuyM8yV1eEpR7xuV8iQoeY44IXeBdYbzkV07cs6cn3ke7m15RRk4dMecfuDzgp IzZ4RyO59LAGn6LoPjFGJWjuDm5P4fWXv8LIEjvz574U3QphkkNOfaeExhlqoJe70HrI BjUrvSAz5ta12QsrLoaqpVq2WtJ+hBxAzV5wIPP/70H8fpIJUjSbzFgkg0IbMawoxSkb +QToLFgEaiVMBRUi8T4JpWX4H2roRU4jeu0o6feP7fTSIQP6iXlpluVZRys5ZIRoSjk/ fPOpK+vaKw0qFgg+pP9vxMpVkuHukitXMTk3Zxq5YIfxftVWAArg0NFLxx6YPNfhSc4h cXpg== 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 n2si3652243pgr.67.2019.02.05.09.34.37; Tue, 05 Feb 2019 09:35:40 -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 S1730333AbfBEQKi (ORCPT + 99 others); Tue, 5 Feb 2019 11:10:38 -0500 Received: from verein.lst.de ([213.95.11.211]:54955 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730235AbfBEQKi (ORCPT ); Tue, 5 Feb 2019 11:10:38 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id D11F768D93; Tue, 5 Feb 2019 17:10:36 +0100 (CET) Date: Tue, 5 Feb 2019 17:10:36 +0100 From: Christoph Hellwig To: Thierry Reding Cc: Christoph Hellwig , Marek Szyprowski , Robin Murphy , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dma-direct: Export dma_direct_alloc() and dma_direct_free() Message-ID: <20190205161036.GA782@lst.de> References: <20190205110602.27717-1-thierry.reding@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190205110602.27717-1-thierry.reding@gmail.com> 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 Tue, Feb 05, 2019 at 12:06:02PM +0100, Thierry Reding wrote: > From: Thierry Reding > > Drivers that are built as modules may want to use these functions, so > make them available like the rest of the functions. > > Signed-off-by: Thierry Reding How do they want to use these functions? The proper way is to call dma_alloc_coherent / dma_alloc_free and let the DMA API handle the rest.