Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3982773ybg; Mon, 28 Oct 2019 23:54:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqy54aH18mM1JbQ4CozfuJyJaH70tIRGQkgiRgNORgDyEQwCEPSn/72do8n9hPrtb21KPraV X-Received: by 2002:a17:906:ccc7:: with SMTP id ot7mr1629309ejb.326.1572332086169; Mon, 28 Oct 2019 23:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572332086; cv=none; d=google.com; s=arc-20160816; b=AROvfDm/E1jcK2ZR/JEjkQlmHaZ0IOvspYC0gUBM7hrbSUvvhlmDHRhnN2NJqIoREm GNOHxaDOVKCo+fX/iYoGYTzN9Cqc68hmgHd3z9f9TJ21p2aP9hntS9aU1fxj1udkr6Ab xUiRypy5r4ukwCWrFhQdoxkJbu0Qj1dwmSSUHx6tR+Mce/49sH7ANLR8dMUVUDVMoYHB UWxMhbl2QP/fgdsvdlSezkFJH5EIi/IrEJCAzezjGdowRp+NvJt6e+Ft1VYRXvJiSUFM PszKYJfAWaNO4ihzvcRgHVC8OAo3ncro48eRIJOQNkP74d4oD2fLYPA6ZWjWpLr5E9mL aowg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=r2oZkcbSPejQY7cz80oHS9fpmT93sVGHDU0X3tx1u58=; b=bnRwQdcb+bufnlcZhzzmrlgfRUsx8q+Yy+hdZAQuUWS0H4bTCltsNE/AfURPMZXlYj JRMSb2aoEmGs2vUnWwvZ6CIkAUrs6ocywlC9xXb4aZW/X0/jw4bP/Hf1C+gopitPaGvK y0LFNiAgRNh5qJA83MmIGiTRZMvwn+uMsO6n+s7+433ah8cdsDdDX46HKt+v9PaLihng /2nLcwcn3ShB5oAq4/TzDB0CmRnhtTHUGgDorPFs6irvJ/BmQCUZWxMQieY46nkLFyZz LSmQpa5n2iHWDXeik4DF2pkBT33etsHS7zIt4BWflzRSNZjiB1VJI9uomFZ3LqdJ7XVk VZOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="drzNa+/D"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si8838288eda.30.2019.10.28.23.54.22; Mon, 28 Oct 2019 23:54:46 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b="drzNa+/D"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727769AbfJ1WYJ (ORCPT + 99 others); Mon, 28 Oct 2019 18:24:09 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:36399 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbfJ1WYJ (ORCPT ); Mon, 28 Oct 2019 18:24:09 -0400 Received: by mail-oi1-f195.google.com with SMTP id j7so7320580oib.3 for ; Mon, 28 Oct 2019 15:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=r2oZkcbSPejQY7cz80oHS9fpmT93sVGHDU0X3tx1u58=; b=drzNa+/Dszlh/bn18l5YMKuFsawU1IqoJickE5gJYg70HnGq1M35FAzxLHS885Xcqh a+575bpErnIGrxVE/hbeXohi75WuBFQtWAjN0r+P3LJDQyM7jePUOeu8MGopEUMjjH/t DFBj0RF+IXv1eK/hpFNw+oWywiRPpZNF1LLO7SJ71U1QqG0+1is+uXX2da0kENDk4wsq Jrl3k7Ia+cYxTUEYQvywZ6SgEN3jAZ78e6z4vj4RbFunhJRg7r6lxkNQ8/L0S/plVXx0 qzrLqryUAjNcA6vYvOj/NhY3TPBll3NbICSMdNEamTD3RzWWuZ4GCDNvmKvhRwaHu7UO HOdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r2oZkcbSPejQY7cz80oHS9fpmT93sVGHDU0X3tx1u58=; b=giZDg7J9vq+8jCRDc0SWqVbHfGgVX/orz8nRH8Av0b8HCN2u1Ah3ljvk6c//oXiAst 93ofHfEPwonDi0FAJXdevnqtt0zVsPdPLiXH3zWJfY780uMdLAV3m2/0GTrDGLPk0vKJ dHKq/ELyto3m93K0BrWilWaMiTZY76fEdreO5QJsq11+GSfXAF5H119NWCbRNnizEDZv qRnou0uEo5URXDWx5Ai0tuSFULaq+tAuy0hp3h33fbWaq0ms5+55ZB7SFmPy3MHKCSbF 112oC/2VsjZSfUrxPuL0fPfioriKtDHMk7i168KNetwSciLXRw6e+Xox0n841ruB0mNS 5s/A== X-Gm-Message-State: APjAAAUW1Pr1qVjyXT16QvhqZW8wSLqbPBjZABxPtjNCrj491w6FAG2d bT1hIG08DnENuJwZeA+RPmSPqghcmsfdv+xzk0gobg== X-Received: by 2002:a05:6808:113:: with SMTP id b19mr1232160oie.169.1572301447788; Mon, 28 Oct 2019 15:24:07 -0700 (PDT) MIME-Version: 1.0 References: <20191025234834.28214-1-john.stultz@linaro.org> <20191025234834.28214-2-john.stultz@linaro.org> <20191028074642.GB31867@infradead.org> In-Reply-To: From: John Stultz Date: Mon, 28 Oct 2019 15:23:57 -0700 Message-ID: Subject: Re: [RFC][PATCH 1/2] mm: cma: Export cma symbols for cma heap as a module To: Christoph Hellwig Cc: lkml , Sandeep Patil , Laura Abbott , Benjamin Gaignard , Sumit Semwal , Liam Mark , Pratik Patel , Brian Starkey , "Andrew F . Davis" , Andrew Morton , Yue Hu , Mike Rapoport , Chenbo Feng , Alistair Strachan , Hridya Valsaraju , dri-devel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 28, 2019 at 11:39 AM John Stultz wrote: > On Mon, Oct 28, 2019 at 12:46 AM Christoph Hellwig wrote: > > > > On Fri, Oct 25, 2019 at 11:48:33PM +0000, John Stultz wrote: > > > struct cma *dma_contiguous_default_area; > > > +EXPORT_SYMBOL(dma_contiguous_default_area); > > > > Please CC the dma maintainer. And no, you have no business using this. > > Sure thing. And I'll look again to see why I was needing to pull that > one in to get it to build. Ah. So looking a bit closer, I'm needing this due to my using dev_get_cma_area() to get the default cma area for the dmabuf cma_heap. Do you have a suggestion for how to get a reference to the default CMA area without exporting dma_contiguous_default_area? Would it be preferred to move dev_get_cma_area() into the .c file and EXPORT_SYMBOL_GPL that function? thanks -john