Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Move htab_remove_mapping function prototype into header file

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>

authored by

Anton Blanchard and committed by
Michael Ellerman
f6026df1 a38efcea

+2 -3
+2
arch/powerpc/include/asm/mmu-hash64.h
··· 342 342 extern int htab_bolt_mapping(unsigned long vstart, unsigned long vend, 343 343 unsigned long pstart, unsigned long prot, 344 344 int psize, int ssize); 345 + int htab_remove_mapping(unsigned long vstart, unsigned long vend, 346 + int psize, int ssize); 345 347 extern void add_gpage(u64 addr, u64 page_size, unsigned long number_of_pages); 346 348 extern void demote_segment_4k(struct mm_struct *mm, unsigned long addr); 347 349
-3
arch/powerpc/mm/init_64.c
··· 233 233 } 234 234 235 235 #ifdef CONFIG_MEMORY_HOTPLUG 236 - extern int htab_remove_mapping(unsigned long vstart, unsigned long vend, 237 - int psize, int ssize); 238 - 239 236 static void vmemmap_remove_mapping(unsigned long start, 240 237 unsigned long page_size) 241 238 {