]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
drivers / dma-contiguous: Fix __init attribute location
authorHanjun Guo <hanjun.guo@linaro.org>
Sat, 17 Aug 2013 12:42:26 +0000 (20:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Aug 2013 00:10:10 +0000 (17:10 -0700)
__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>
drivers/base/dma-contiguous.c

index 0ca54421ce977b7f82055644a08d8ea0ae3ca406..6c9cdaa9200d795d6cadee62d8af4b59ae36ae51 100644 (file)
@@ -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;
@@ -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);