From patchwork Thu Nov 9 07:45:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Ser X-Patchwork-Id: 13450706 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1CB24C4167B for ; Thu, 9 Nov 2023 07:46:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 489FC10E1C9; Thu, 9 Nov 2023 07:46:01 +0000 (UTC) Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) by gabe.freedesktop.org (Postfix) with ESMTPS id 86EA710E1C9 for ; Thu, 9 Nov 2023 07:45:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail2; t=1699515957; x=1699775157; bh=DdVm0IYAnpXIL8InOfPloMQ7jl511aw+QxHWadkrvrE=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=lrFTuGTZ5pqI24/zzYbOBUTPfOrgtvzTsTFbaoESLvU6R0q4mBdvjputmHQ1W6WIW HIUm1LIbsVnh1UpFnHrIUvo/avAfcKan+MOzljA2j03Tc1zTLvbNIxe2Zn2QPEUCFq PAa0Ml4CP/EDANBXwGlpptdSfPhjaD7x/iyL1Mo559tGfepjewaTHaeeHsbNXDdNm6 1CUuEowCEGW5O2Q+0BYytqQCRo88UqGAnbulM7xpU9ZI27hnN0h4efuSSkIJXxdIc3 PnmjR5U/IcgcnPiWbGfV27LNjAuOIxzG5vHDG6cO6uEHJWwgdmb1W2O0bDzFT38JMP /q2QPEQzNHkOw== Date: Thu, 09 Nov 2023 07:45:52 +0000 To: dri-devel@lists.freedesktop.org From: Simon Ser Subject: [RFC PATCH 1/2] dma-buf/dma-heap: export dma_heap_add and dma_heap_get_drvdata Message-ID: <20231109074545.148149-1-contact@emersion.fr> Feedback-ID: 1358184:user:proton MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: John Stultz , Benjamin Gaignard , Sumit Semwal , "T.J. Mercier" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is necessary to create DMA heaps in other modules (e.g. graphics drivers). Signed-off-by: Simon Ser Cc: Sumit Semwal Cc: Benjamin Gaignard Cc: Brian Starkey Cc: John Stultz Cc: "T.J. Mercier" --- drivers/dma-buf/dma-heap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c index 84ae708fafe7..51cd58b775d8 100644 --- a/drivers/dma-buf/dma-heap.c +++ b/drivers/dma-buf/dma-heap.c @@ -203,6 +203,7 @@ void *dma_heap_get_drvdata(struct dma_heap *heap) { return heap->priv; } +EXPORT_SYMBOL_GPL(dma_heap_get_drvdata); /** * dma_heap_get_name() - get heap name @@ -300,6 +301,7 @@ struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info) kfree(heap); return err_ret; } +EXPORT_SYMBOL_GPL(dma_heap_add); static char *dma_heap_devnode(const struct device *dev, umode_t *mode) {