Skip to content

Commit cebcac7

Browse files
hanjun-guogregkh
authored andcommitted
drivers / dma-contiguous: Fix __init attribute location
__init belongs after the return type on functions, not before it. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a825791 commit cebcac7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/base/dma-contiguous.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void __init dma_contiguous_reserve(phys_addr_t limit)
134134

135135
static DEFINE_MUTEX(cma_mutex);
136136

137-
static __init int cma_activate_area(unsigned long base_pfn, unsigned long count)
137+
static int __init cma_activate_area(unsigned long base_pfn, unsigned long count)
138138
{
139139
unsigned long pfn = base_pfn;
140140
unsigned i = count >> pageblock_order;
@@ -156,7 +156,7 @@ static __init int cma_activate_area(unsigned long base_pfn, unsigned long count)
156156
return 0;
157157
}
158158

159-
static __init struct cma *cma_create_area(unsigned long base_pfn,
159+
static struct cma * __init cma_create_area(unsigned long base_pfn,
160160
unsigned long count)
161161
{
162162
int bitmap_size = BITS_TO_LONGS(count) * sizeof(long);

0 commit comments

Comments
 (0)