Skip to content

Commit ea5a8c6

Browse files
Sven Schnellehdeller
authored andcommitted
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>
1 parent 376e5fd commit ea5a8c6

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎arch/parisc/kernel/patch.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct patch {
2020
unsigned int insn;
2121
};
2222

23-
static void __kprobes *patch_map(void *addr, int fixmap, unsigned long *flags)
23+
static void __kprobes *patch_map(void *addr, int fixmap)
2424
{
2525
unsigned long uintaddr = (uintptr_t) addr;
2626
bool module = !core_kernel_text(uintaddr);
@@ -38,22 +38,21 @@ static void __kprobes *patch_map(void *addr, int fixmap, unsigned long *flags)
3838
return (void *) (__fix_to_virt(fixmap) + (uintaddr & ~PAGE_MASK));
3939
}
4040

41-
static void __kprobes patch_unmap(int fixmap, unsigned long *flags)
41+
static void __kprobes patch_unmap(int fixmap)
4242
{
4343
clear_fixmap(fixmap);
4444
}
4545

4646
void __kprobes __patch_text(void *addr, unsigned int insn)
4747
{
48-
unsigned long flags;
4948
void *waddr = addr;
5049
int size;
5150

52-
waddr = patch_map(addr, FIX_TEXT_POKE0, &flags);
51+
waddr = patch_map(addr, FIX_TEXT_POKE0);
5352
*(u32 *)waddr = insn;
5453
size = sizeof(u32);
5554
flush_kernel_vmap_range(waddr, size);
56-
patch_unmap(FIX_TEXT_POKE0, &flags);
55+
patch_unmap(FIX_TEXT_POKE0);
5756
flush_icache_range((uintptr_t)(addr),
5857
(uintptr_t)(addr) + size);
5958
}

0 commit comments

Comments
 (0)