Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3563945ybg; Mon, 28 Oct 2019 15:03:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzc3g4TG6dk5QtjDzHPvdoFS9CiX+V5+LfUNZq88RkBtURp64LdjgyOo7v8obxNxbqA2/TF X-Received: by 2002:a17:907:40f3:: with SMTP id no3mr78151ejb.95.1572300188327; Mon, 28 Oct 2019 15:03:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572300188; cv=none; d=google.com; s=arc-20160816; b=fhELlza3NUucLKeaiTP3b6iH8HqruEYF2Y2UoH+jVmuuBspJ7Fm7gYq825KjUNt4hZ Y0VFJ180lX0IFKA/hoA0EhtaOZg4I01tskr/CnIM/rv3PFPLDzWaDSV4NvJqI/xlbk3/ Tg0B8DNyjPjcAFMnHap8Pg+q0ZVe4Yin15JRvLMRUuWP7nBOnuvC6GwX+XcnMlCb16SU z4+WFLueHyjU2yHRYK+NU+K2qicqV9lx9HBJFIA7zqY8p8ycxKMedFZEtzIossrrYAJj 6CQkaJ3w29e8PKN1lG9SyBwjzmeGkRZcdf4aEUU/IbBFcqdd44nKszV4rCqhWayQPmVV tHMw== 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:dkim-signature; bh=XIxcK82zdAikV69eNIaKCwJswys26I7OsAOmW8C2I7k=; b=MmPAmvUnmaaQyDet4JMHyC7HqNS+/dHOJu910tKJ/G4BXp/ISFU7SPCQEx4UdultCv rHIcLHFar4iZW/xbPKF2irR8JKIn0LouvIH4xHssno8h0iZqBS2UL37etPUoAqOUTIcj +W6j8gkAXijtrp5HYwti8VOvxFdPINbfnj1YWfrp/P4y0zkIvB4OygCOsaatFb5qrmWt aSbnKviTpXVMOFfJvpBdcycapM8xqtR5z1j4+Z6whZKYPXxtUzabqYvPcbRCfIB5zLNU 1FQR+ibYFEADkqRfrFxtx/6lgOIwM/w3U9aTY2lF33BpzY4RToyBUGNhxPPe7AGGC+Km k0TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pvu46bxe; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si9127099edc.195.2019.10.28.15.02.34; Mon, 28 Oct 2019 15:03:08 -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=@google.com header.s=20161025 header.b=pvu46bxe; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729826AbfJ1TMf (ORCPT + 99 others); Mon, 28 Oct 2019 15:12:35 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:34293 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728941AbfJ1TMe (ORCPT ); Mon, 28 Oct 2019 15:12:34 -0400 Received: by mail-pf1-f194.google.com with SMTP id b128so7557516pfa.1 for ; Mon, 28 Oct 2019 12:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XIxcK82zdAikV69eNIaKCwJswys26I7OsAOmW8C2I7k=; b=pvu46bxePRBWKMscgR+TXKOrL+RNRcdIYbHu338UTkaSxnWT1KhCEH9YlKgSdd9ct2 7BBlDEZA4/rcG0ozH9y+/CkWzOzp1U7GeIovEj8OPm8ypzVxJ35FrwpCbTVuHWwvmpm0 kylQAmnD1Hv0jjlHCApBPwlMUxpc//s3hQT5f7/9fRGcsKOkhX0lW/EWZr3MgaeHOS1I 3w72sfaD/PzhX+RNnw+UGtYbSrUHpnJ0jkqS/y9hmbWjuzF//fP5OqaWkE0lddtt9slb F7FBsUMP9quDvf5V6x4FEpuv1nlGLcYtyE8vq3AvtvsyiHT0FblF5sKhgClA73KjJKTB XdaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XIxcK82zdAikV69eNIaKCwJswys26I7OsAOmW8C2I7k=; b=CaP3etNRN3yV8v8VvwHkJ1mZyYhLkUMFnlE1RMJvej9ahLsD8zQ0M7jJDYyLj7Akgp x1cnV9axholZLRHleSH21rPf73q/4cpbO+rgqKL+j8vBdtxdofWt/+0CXSnT0/Vv97pG Gjz3Zarm/wZYt8uNtcTvT/EE/w7SMpV0dlDqOMFJ4fzerJGKAMZ/9k2jdyV92UoILJRJ Vcgk/6NM6Dqv68L0pRWekogOPQKhFnlwlIHGm4ZAouJeY9vNI5iAL7SQ8wUu1CvkrG6V Ooi5DLk6fIN0w65Fmw5c3ehrMB77FkbqSObdvySJdQtTRG7Wn43oMpQPIhCjGLK3aD/t WSEA== X-Gm-Message-State: APjAAAXidnlNGWpBRVQflJ3H1ZrQM8hxEHOAeDRxGHMrEGuALwtDVEKM qjn5FnpEuI55OFgdcfPXJL2IRA== X-Received: by 2002:aa7:8a97:: with SMTP id a23mr22285150pfc.76.1572289953410; Mon, 28 Oct 2019 12:12:33 -0700 (PDT) Received: from sspatil-workstation.mtv.corp.google.com ([2620:15c:211:0:fb21:5c58:d6bc:4bef]) by smtp.gmail.com with ESMTPSA id 21sm3911485pfa.170.2019.10.28.12.12.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 12:12:32 -0700 (PDT) Date: Mon, 28 Oct 2019 12:12:31 -0700 From: sspatil@google.com To: john.stultz@linaro.org, linux-kernel@vger.kernel.org, labbott@redhat.com, benjamin.gaignard@linaro.org, sumit.semwal@linaro.org, lmark@codeaurora.org, pratikp@codeaurora.org, Brian.Starkey@arm.com, afd@ti.com, akpm@linux-foundation.org, huyue2@yulong.com, rppt@linux.ibm.com, fengc@google.com, astrachan@google.com, hridya@google.com, dri-devel@lists.freedesktop.org Cc: lkml , 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@lists.freedesktop.org Subject: Re: [RFC][PATCH 1/2] mm: cma: Export cma symbols for cma heap as a module Message-ID: <20191028191231.GJ125958@google.com> References: <20191025234834.28214-1-john.stultz@linaro.org> <20191025234834.28214-2-john.stultz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191025234834.28214-2-john.stultz@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 25, 2019 at 11:48:33PM +0000, John Stultz wrote: > From: Sandeep Patil > > Export cma_get_name, cma_alloc, cma_release, cma_for_each_area > and dma_contiguous_default_area so that we can use these from > the dmabuf cma heap when it is built as module. > > Cc: Laura Abbott > Cc: Benjamin Gaignard > Cc: Sumit Semwal > Cc: Liam Mark > Cc: Pratik Patel > Cc: Brian Starkey > Cc: Andrew F. Davis > Cc: Andrew Morton > Cc: Yue Hu > Cc: Mike Rapoport > Cc: Chenbo Feng > Cc: Alistair Strachan > Cc: Sandeep Patil > Cc: Hridya Valsaraju > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Sandeep Patil > [jstultz: Rewrote commit message, added > dma_contiguous_default_area to the set of exported symbols] > Signed-off-by: John Stultz > --- > kernel/dma/contiguous.c | 1 + > mm/cma.c | 5 +++++ > 2 files changed, 6 insertions(+) > > diff --git a/kernel/dma/contiguous.c b/kernel/dma/contiguous.c > index 69cfb4345388..ff6cba63ea6f 100644 > --- 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? Other than that, thanks for doing this John. Acked-by: Sandeep Patil - ssp 1] https://android-review.googlesource.com/c/kernel/common/+/1121591