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

parisc: remove unused flags parameter in __patch_text()

It's not used by patch_map()/patch_unmap(), so lets remove
it.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Sven Schnelle and committed by
Helge Deller
ea5a8c62 376e5fd7

+4 -5
+4 -5
arch/parisc/kernel/patch.c
··· 20 20 unsigned int insn; 21 21 }; 22 22 23 - static void __kprobes *patch_map(void *addr, int fixmap, unsigned long *flags) 23 + static void __kprobes *patch_map(void *addr, int fixmap) 24 24 { 25 25 unsigned long uintaddr = (uintptr_t) addr; 26 26 bool module = !core_kernel_text(uintaddr); ··· 38 38 return (void *) (__fix_to_virt(fixmap) + (uintaddr & ~PAGE_MASK)); 39 39 } 40 40 41 - static void __kprobes patch_unmap(int fixmap, unsigned long *flags) 41 + static void __kprobes patch_unmap(int fixmap) 42 42 { 43 43 clear_fixmap(fixmap); 44 44 } 45 45 46 46 void __kprobes __patch_text(void *addr, unsigned int insn) 47 47 { 48 - unsigned long flags; 49 48 void *waddr = addr; 50 49 int size; 51 50 52 - waddr = patch_map(addr, FIX_TEXT_POKE0, &flags); 51 + waddr = patch_map(addr, FIX_TEXT_POKE0); 53 52 *(u32 *)waddr = insn; 54 53 size = sizeof(u32); 55 54 flush_kernel_vmap_range(waddr, size); 56 - patch_unmap(FIX_TEXT_POKE0, &flags); 55 + patch_unmap(FIX_TEXT_POKE0); 57 56 flush_icache_range((uintptr_t)(addr), 58 57 (uintptr_t)(addr) + size); 59 58 }