Skip to content

Commit

Permalink
drivers / dma-contiguous: Fix __init attribute location
Browse files Browse the repository at this point in the history
__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>
  • Loading branch information
Hanjun Guo authored and Greg Kroah-Hartman committed Aug 20, 2013
1 parent a825791 commit cebcac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/base/dma-contiguous.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void __init dma_contiguous_reserve(phys_addr_t limit)

static DEFINE_MUTEX(cma_mutex);

static __init int cma_activate_area(unsigned long base_pfn, unsigned long count)
static int __init cma_activate_area(unsigned long base_pfn, unsigned long count)
{
unsigned long pfn = base_pfn;
unsigned i = count >> pageblock_order;
Expand All @@ -156,7 +156,7 @@ static __init int cma_activate_area(unsigned long base_pfn, unsigned long count)
return 0;
}

static __init struct cma *cma_create_area(unsigned long base_pfn,
static struct cma * __init cma_create_area(unsigned long base_pfn,
unsigned long count)
{
int bitmap_size = BITS_TO_LONGS(count) * sizeof(long);
Expand Down

0 comments on commit cebcac7

Please sign in to comment.