mm/memblock: Make memblock_remove_range() static
PATCH 1/1 mm/memblock: Make memblock_remove_range() static
The memblock_remove_range() function is only used in the mm/memblock.c, so we can do it static.
Signed-off-by Alexander Kuleshov <[email protected]>
--- include/linux/memblock.h | 4 ---- mm/memblock.c | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-)
include/linux/memblock.h +0 -4
@@ -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,
mm/memblock.c +1 -1
@@ -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;
Signature · 7 lines
2.5.0 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>