mm/memblock: make memblock_remove_range() static
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Fri, 6 Nov 2015 02:47:00 +0000 (18:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
memblock_remove_range() is only used in the mm/memblock.c, so we can make
it static.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memblock.h
mm/memblock.c

index c518eb5892603fdd89cdb6d674f1f633f0451367..24daf8fc4d7c71e4c36ed0063849c01a3b31d022 100644 (file)
@@ -89,10 +89,6 @@ int memblock_add_range(struct memblock_type *type,
                       phys_addr_t base, phys_addr_t size,
                       int nid, unsigned long flags);
 
-int memblock_remove_range(struct memblock_type *type,
-                         phys_addr_t base,
-                         phys_addr_t size);
-
 void __next_mem_range(u64 *idx, int nid, ulong flags,
                      struct memblock_type *type_a,
                      struct memblock_type *type_b, phys_addr_t *out_start,
index 1c7b647e58971ee77e0892bb0edbad5b40ec50fd..d300f1329814ba538b271fafabb0351d3182d639 100644 (file)
@@ -706,7 +706,7 @@ static int __init_memblock memblock_isolate_range(struct memblock_type *type,
        return 0;
 }
 
-int __init_memblock memblock_remove_range(struct memblock_type *type,
+static int __init_memblock memblock_remove_range(struct memblock_type *type,
                                          phys_addr_t base, phys_addr_t size)
 {
        int start_rgn, end_rgn;