OSDN Git Service

powerpc/optprobes: Make patch_imm64_load_insns() static
authorCédric Le Goater <clg@kaod.org>
Mon, 4 Jan 2021 14:31:54 +0000 (15:31 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 30 Jan 2021 00:39:29 +0000 (11:39 +1100)
commitbb21e1b6c5352d62d866e9236ed427f632cd537b
tree37c46e704522de6e5d720c58030c07f851c56ed6
parentd47d307f1049be545d45cf0f2332495ec9a89cc0
powerpc/optprobes: Make patch_imm64_load_insns() static

patch_imm64_load_insns() is only used locally in
arch_prepare_optimized_kprobe() and does not need to be external.

It fixes this W=1 compile error :

../arch/powerpc/kernel/optprobes.c:149:6: error: no previous prototype for ‘patch_imm64_load_insns’ [-Werror=missing-prototypes]
  149 | void patch_imm64_load_insns(unsigned int val, kprobe_opcode_t *addr)

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210104143206.695198-12-clg@kaod.org
arch/powerpc/kernel/optprobes.c