powerpc: Move htab_remove_mapping function prototype into header file
authorAnton Blanchard <anton@samba.org>
Tue, 19 Aug 2014 22:55:21 +0000 (08:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 25 Sep 2014 13:14:44 +0000 (23:14 +1000)
A recent patch added a function prototype for htab_remove_mapping in
c code. Fix it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/mmu-hash64.h
arch/powerpc/mm/init_64.c

index d76514487d6f8f19c5409941dafa970b21426118..92bc3a637923a4a3694eca0d478ac8280eb5af7c 100644 (file)
@@ -342,6 +342,8 @@ extern void hash_failure_debug(unsigned long ea, unsigned long access,
 extern int htab_bolt_mapping(unsigned long vstart, unsigned long vend,
                             unsigned long pstart, unsigned long prot,
                             int psize, int ssize);
+int htab_remove_mapping(unsigned long vstart, unsigned long vend,
+                       int psize, int ssize);
 extern void add_gpage(u64 addr, u64 page_size, unsigned long number_of_pages);
 extern void demote_segment_4k(struct mm_struct *mm, unsigned long addr);
 
index 253b4b971c8afa261d110d653e15495a8c55dc6c..3481556a1880407db79fe32527289040eb9b6d77 100644 (file)
@@ -233,9 +233,6 @@ static void __meminit vmemmap_create_mapping(unsigned long start,
 }
 
 #ifdef CONFIG_MEMORY_HOTPLUG
-extern int htab_remove_mapping(unsigned long vstart, unsigned long vend,
-                       int psize, int ssize);
-
 static void vmemmap_remove_mapping(unsigned long start,
                                   unsigned long page_size)
 {