diff options
author | Sven Schnelle <svens@stackframe.org> | 2019-04-09 19:30:30 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2019-05-03 23:47:39 +0200 |
commit | ea5a8c620ffb341b2d1a02755f9e87375523c0e5 (patch) | |
tree | a630e8285b62b0e75ed75fcc9af454b928b63c87 /arch/parisc/kernel | |
parent | 376e5fd7ec341a4e9cee2bf64fb59285023056e3 (diff) | |
download | linux-ea5a8c620ffb341b2d1a02755f9e87375523c0e5.tar.bz2 |
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>
Diffstat (limited to 'arch/parisc/kernel')
-rw-r--r-- | arch/parisc/kernel/patch.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/parisc/kernel/patch.c b/arch/parisc/kernel/patch.c index 8c5ee684cb16..cdcd981278b3 100644 --- a/arch/parisc/kernel/patch.c +++ b/arch/parisc/kernel/patch.c @@ -20,7 +20,7 @@ struct patch { unsigned int insn; }; -static void __kprobes *patch_map(void *addr, int fixmap, unsigned long *flags) +static void __kprobes *patch_map(void *addr, int fixmap) { unsigned long uintaddr = (uintptr_t) addr; bool module = !core_kernel_text(uintaddr); @@ -38,22 +38,21 @@ static void __kprobes *patch_map(void *addr, int fixmap, unsigned long *flags) return (void *) (__fix_to_virt(fixmap) + (uintaddr & ~PAGE_MASK)); } -static void __kprobes patch_unmap(int fixmap, unsigned long *flags) +static void __kprobes patch_unmap(int fixmap) { clear_fixmap(fixmap); } void __kprobes __patch_text(void *addr, unsigned int insn) { - unsigned long flags; void *waddr = addr; int size; - waddr = patch_map(addr, FIX_TEXT_POKE0, &flags); + waddr = patch_map(addr, FIX_TEXT_POKE0); *(u32 *)waddr = insn; size = sizeof(u32); flush_kernel_vmap_range(waddr, size); - patch_unmap(FIX_TEXT_POKE0, &flags); + patch_unmap(FIX_TEXT_POKE0); flush_icache_range((uintptr_t)(addr), (uintptr_t)(addr) + size); } |