lkml.org 
[lkml]   [2011]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] mm/memblock: local functions should be static
The function memblock_overlaps_region() is only used in this file and should
be marked static.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>

---

diff --git a/mm/memblock.c b/mm/memblock.c
index 400dc62..69702ef 100644
--- a/mm/memblock.c
+++ b/mm/memblock.c
@@ -80,7 +80,8 @@ static long __init_memblock memblock_regions_adjacent(struct memblock_type *type
return memblock_addrs_adjacent(base1, size1, base2, size2);
}

-long __init_memblock memblock_overlaps_region(struct memblock_type *type, phys_addr_t base, phys_addr_t size)
+static long __init_memblock memblock_overlaps_region(struct memblock_type *type,
+ phys_addr_t base, phys_addr_t size)
{
unsigned long i;
\
 
 \ /
  Last update: 2011-01-12 00:29    [W:0.022 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site