@@ -85,21 +85,21 @@ asm (
8585 "optprobe_template_end:\n" );
8686
8787#define TMPL_VAL_IDX \
88- ((unsigned long * )& optprobe_template_val - (unsigned long * )& optprobe_template_entry )
88+ ((unsigned long * )optprobe_template_val - (unsigned long * )optprobe_template_entry )
8989#define TMPL_CALL_IDX \
90- ((unsigned long *)& optprobe_template_call - (unsigned long *)& optprobe_template_entry)
90+ ((unsigned long *)optprobe_template_call - (unsigned long *)optprobe_template_entry)
9191#define TMPL_END_IDX \
92- ((unsigned long *)& optprobe_template_end - (unsigned long *)& optprobe_template_entry)
92+ ((unsigned long *)optprobe_template_end - (unsigned long *)optprobe_template_entry)
9393#define TMPL_ADD_SP \
94- ((unsigned long *)& optprobe_template_add_sp - (unsigned long *)& optprobe_template_entry)
94+ ((unsigned long *)optprobe_template_add_sp - (unsigned long *)optprobe_template_entry)
9595#define TMPL_SUB_SP \
96- ((unsigned long *)& optprobe_template_sub_sp - (unsigned long *)& optprobe_template_entry)
96+ ((unsigned long *)optprobe_template_sub_sp - (unsigned long *)optprobe_template_entry)
9797#define TMPL_RESTORE_BEGIN \
98- ((unsigned long *)& optprobe_template_restore_begin - (unsigned long *)& optprobe_template_entry)
98+ ((unsigned long *)optprobe_template_restore_begin - (unsigned long *)optprobe_template_entry)
9999#define TMPL_RESTORE_ORIGN_INSN \
100- ((unsigned long *)& optprobe_template_restore_orig_insn - (unsigned long *)& optprobe_template_entry)
100+ ((unsigned long *)optprobe_template_restore_orig_insn - (unsigned long *)optprobe_template_entry)
101101#define TMPL_RESTORE_END \
102- ((unsigned long *)& optprobe_template_restore_end - (unsigned long *)& optprobe_template_entry)
102+ ((unsigned long *)optprobe_template_restore_end - (unsigned long *)optprobe_template_entry)
103103
104104/*
105105 * ARM can always optimize an instruction when using ARM ISA, except
@@ -234,7 +234,7 @@ int arch_prepare_optimized_kprobe(struct optimized_kprobe *op, struct kprobe *or
234234 }
235235
236236 /* Copy arch-dep-instance from template. */
237- memcpy (code , (unsigned long * )& optprobe_template_entry ,
237+ memcpy (code , (unsigned long * )optprobe_template_entry ,
238238 TMPL_END_IDX * sizeof (kprobe_opcode_t ));
239239
240240 /* Adjust buffer according to instruction. */
0 commit comments