Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35bd16a2 authored by Alexander Kuleshov's avatar Alexander Kuleshov Committed by Linus Torvalds
Browse files

mm/memblock: make memblock_remove_range() static



memblock_remove_range() is only used in the mm/memblock.c, so we can make
it static.

Signed-off-by: default avatarAlexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f19cb115
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -89,10 +89,6 @@ int memblock_add_range(struct memblock_type *type,
		       phys_addr_t base, phys_addr_t size,
		       phys_addr_t base, phys_addr_t size,
		       int nid, unsigned long flags);
		       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,
void __next_mem_range(u64 *idx, int nid, ulong flags,
		      struct memblock_type *type_a,
		      struct memblock_type *type_a,
		      struct memblock_type *type_b, phys_addr_t *out_start,
		      struct memblock_type *type_b, phys_addr_t *out_start,
+1 −1
Original line number Original line Diff line number Diff line
@@ -706,7 +706,7 @@ static int __init_memblock memblock_isolate_range(struct memblock_type *type,
	return 0;
	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)
					  phys_addr_t base, phys_addr_t size)
{
{
	int start_rgn, end_rgn;
	int start_rgn, end_rgn;