[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220922112938.147609-1-xiujianfeng@huawei.com>
Date: Thu, 22 Sep 2022 19:29:38 +0800
From: Xiu Jianfeng <xiujianfeng@...wei.com>
To: <sumit.semwal@...aro.org>, <benjamin.gaignard@...labora.com>,
<lmark@...eaurora.org>, <labbott@...hat.com>,
<Brian.Starkey@....com>, <jstultz@...gle.com>,
<christian.koenig@....com>
CC: <linux-media@...r.kernel.org>, <dri-devel@...ts.freedesktop.org>,
<linaro-mm-sig@...ts.linaro.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] dma-buf: Add __init annotation to module init func
Add missing __init annotation to module init func.
Signed-off-by: Xiu Jianfeng <xiujianfeng@...wei.com>
---
drivers/dma-buf/heaps/cma_heap.c | 2 +-
drivers/dma-buf/heaps/system_heap.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/dma-buf/heaps/cma_heap.c b/drivers/dma-buf/heaps/cma_heap.c
index 28fb04eccdd0..62d0d0e8b10d 100644
--- a/drivers/dma-buf/heaps/cma_heap.c
+++ b/drivers/dma-buf/heaps/cma_heap.c
@@ -392,7 +392,7 @@ static int __add_cma_heap(struct cma *cma, void *data)
return 0;
}
-static int add_default_cma_heap(void)
+static int __init add_default_cma_heap(void)
{
struct cma *default_cma = dev_get_cma_area(NULL);
int ret = 0;
diff --git a/drivers/dma-buf/heaps/system_heap.c b/drivers/dma-buf/heaps/system_heap.c
index fcf836ba9c1f..cbe445bc5bab 100644
--- a/drivers/dma-buf/heaps/system_heap.c
+++ b/drivers/dma-buf/heaps/system_heap.c
@@ -422,7 +422,7 @@ static const struct dma_heap_ops system_heap_ops = {
.allocate = system_heap_allocate,
};
-static int system_heap_create(void)
+static int __init system_heap_create(void)
{
struct dma_heap_export_info exp_info;
--
2.17.1
Powered by blists - more mailing lists