Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3656424ybg; Mon, 28 Oct 2019 16:42:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQunXeDaKwpzhJkGKNPYKS+m7M7CZYrzxaWp4qRiizYIbzF1Fnh2yjt37mqX2ax3pf74G0 X-Received: by 2002:a50:9eac:: with SMTP id a41mr22527556edf.237.1572306176829; Mon, 28 Oct 2019 16:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572306176; cv=none; d=google.com; s=arc-20160816; b=yrI2ywtcJOVUW+pF1HpqfR1H9+OBFxa2uXzeaXssBttTE3sgHJ71DnAi5AQowTv9bm qcGR5x6sBlzQ0QLL5gbWWTjwflDcDZ3mCB3zaFMdUXXbkpKB5Z5mVNUQNKZw2FcGCN7u 0oYLBzYWu3Obn+5KicsIu45RPuqwgQ+0K9L9T4HANXT8Vz5T8wtV3DNp11o2fabx+MZO 0Vp1CmQA9i93senRPwVAJDe5JMZuJJTrtVZWHdXkblLT+e/+q59bFjyvDRqWPAQpA1ae ftGlyP+ZlBw2Bu1Z8TFldG4niyJZDChRKNprXHSxOTtn0sPij700O4ALJv1JmJi1Utvf C8cQ== 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=rjaKLyekYNHPXZ7Zh1mNGLtxL0unaQdEBwCVJlgaZ8w=; b=L2416H4k0HvGY23A43miwm6zv/w0uUo+U2B+BECF+yQHUxwm8MTi8R6TSzkkLIgWX5 pXBNBSKo/iR4FIKuEtTnZMnOTAhRGSRvF/5EEazB3JcOnXvUzYa7Nv2x0ejYc2nttKE3 qh5vS7SgKZnJ9azgFYiLo6kVEQXecjnDYbBdFD27bXa/RikOXnSr6MJ2aTCG7JVvlyk3 Gs5ikdnqpM/6aut26sPJENa4CSxjHO/rIaVYj99KKYDN+sik4T+zY+pYuy3RrXNlTrMK 5kiAYb2HMo21bmhEV+9oXtJuoc1uqrAcB5s4QzwIXS9vok9v2w0z1zy+EGffMdpETkcC FO2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mFJrUbF9; 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 v16si7285234ejx.96.2019.10.28.16.42.33; Mon, 28 Oct 2019 16:42:56 -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=mFJrUbF9; 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 S1728220AbfJ1W0k (ORCPT + 99 others); Mon, 28 Oct 2019 18:26:40 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:45196 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728137AbfJ1W0k (ORCPT ); Mon, 28 Oct 2019 18:26:40 -0400 Received: by mail-ot1-f65.google.com with SMTP id 41so8049826oti.12 for ; Mon, 28 Oct 2019 15:26:39 -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=rjaKLyekYNHPXZ7Zh1mNGLtxL0unaQdEBwCVJlgaZ8w=; b=mFJrUbF9SJh4NwZ1grLzSIg8GB0cbVWo9erluO3H5ch6mTmkstZOZ//IrIeSyR9Yva vU5niR2ibGiMQyhT+KkdFZvWX/mcM4xaO+XVsGVzQZCHWUbQfZE5HgjqO48jxtJ+VWwV xeJClmrCQwM+LyV9CTe+zH7j7599bBsEgjW1a9z5eb/xgM/hObBqRsD2bpPqEw0TjQNe GQA/U9GsYTCE1jZUpWCEwYZKYxVRF4mi8w14jGNPY9NDWDhWwewcuVBhnPS6miSsi152 CJIPUCT5+JFktOIsaA3gYoq/HtHT60fsnjwzxHTfmiEYUxQdL+zTybLZ4n2L9/C+tWrb /Ouw== 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=rjaKLyekYNHPXZ7Zh1mNGLtxL0unaQdEBwCVJlgaZ8w=; b=ImlGn54nEjuDiIaxcx/pF8B6q5FhZedxhxmfeL5H/aHFGX9m3C9OXmvDnyBrNW7fb2 /TRauu1aDqvlqg2i77UpuJw/oSGMaFfBRjLnKZ3v+CNrS250ofFEwcMuJ425mTQmWbG2 OvYrDVAVt1kc3gZVuN7qHAZuEH2CmyCLCvfBz0EjJXFZ38E7US60LIfWHVam5624Tr3D kfj4M9Qtd/H9ewVYTKXBFc/fHvXUJmgPU54i7vmJ5My5QhmWJ9ojtxbRXaqb5SMdmJ9D 9AS2SRDsPidSTgrci7MFEHLDXdDIMBWyHlXTwuCwR9CYcBTjUwxyPzN2IxmFMURhSGzB QJ9g== X-Gm-Message-State: APjAAAVA2W7PhnfdO7lWmXDpr02uaQf9JY05ZAMly2vmzfW+c9FUiQHJ 6+ODUuhdkOmIWGHMY2XFKV+CsY1nQwdy3FY64zDAgA== X-Received: by 2002:a05:6830:ca:: with SMTP id x10mr14637591oto.221.1572301599265; Mon, 28 Oct 2019 15:26:39 -0700 (PDT) MIME-Version: 1.0 References: <20191025234834.28214-1-john.stultz@linaro.org> <20191025234834.28214-2-john.stultz@linaro.org> <20191028191231.GJ125958@google.com> In-Reply-To: From: John Stultz Date: Mon, 28 Oct 2019 15:26:28 -0700 Message-ID: Subject: Re: [RFC][PATCH 1/2] mm: cma: Export cma symbols for cma heap as a module To: Sandeep Patil Cc: lkml , Laura Abbott , Benjamin Gaignard , Sumit Semwal , Liam Mark , Pratik Patel , Brian Starkey , Andrew Morton , Chenbo Feng , Hridya Valsaraju , dri-devel , "Andrew F . Davis" , Yue Hu , Mike Rapoport , Alistair Strachan 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 1:03 PM John Stultz wrote: > > On Mon, Oct 28, 2019 at 12:12 PM wrote: > > On Fri, Oct 25, 2019 at 11:48:33PM +0000, John Stultz wrote: > > > --- a/kernel/dma/contiguous.c > > > +++ b/kernel/dma/contiguous.c > > > @@ -31,6 +31,7 @@ > > > #endif > > > > > > struct cma *dma_contiguous_default_area; > > > +EXPORT_SYMBOL(dma_contiguous_default_area); > > > > I didn't need to do this for the (out-of-tree) ion cma heap [1]. > > Any reason why you had to? > > Its likely due to the changes I made in the separate > non-default-CMA-region patch set. Earlier I had gotten away with just > your change, but in testing before I sent this series, I hit the build > error and quickly added the export before sending. And just to clarify this point, I was mistaken and it wasn't the non-default-CMA-region patch set, but the fact that I'm using dev_get_cma_area(NULL) to get the default CMA area to register, rather then trying to register every CMA area via cma_for_each_area() as is done in ION. I actually could probably drop the cma_for_each_area export for the dmabuf heaps usage. thanks -john