Skip to content

Commit db70d9f

Browse files
committed
ARC: Fix -Wmissing-prototypes warnings
| ../arch/arc/kernel/kprobes.c:193:15: warning: no previous prototype for 'arc_kprobe_handler' [-Wmissing-prototypes] | 193 | int __kprobes arc_kprobe_handler(unsigned long addr, struct pt_regs *regs) | |../arch/arc/kernel/ptrace.c:342:16: warning: no previous prototype for 'syscall_trace_enter' [-Wmissing-prototypes] | 342 | asmlinkage int syscall_trace_enter(struct pt_regs *regs) Link: https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240325/testrun/23149630/suite/build/test/gcc-9-defconfig/log Reported-by: Linux Kernel Functional Testing <[email protected]> Signed-off-by: Vineet Gupta <[email protected]>
1 parent 39cd87c commit db70d9f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

arch/arc/include/asm/ptrace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ static inline unsigned long regs_get_register(struct pt_regs *regs,
169169
return *(unsigned long *)((unsigned long)regs + offset);
170170
}
171171

172-
extern int syscall_trace_entry(struct pt_regs *);
172+
extern int syscall_trace_enter(struct pt_regs *);
173173
extern void syscall_trace_exit(struct pt_regs *);
174174

175175
#endif /* !__ASSEMBLY__ */

arch/arc/kernel/kprobes.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ static void __kprobes setup_singlestep(struct kprobe *p, struct pt_regs *regs)
190190
}
191191
}
192192

193-
int __kprobes arc_kprobe_handler(unsigned long addr, struct pt_regs *regs)
193+
static int
194+
__kprobes arc_kprobe_handler(unsigned long addr, struct pt_regs *regs)
194195
{
195196
struct kprobe *p;
196197
struct kprobe_ctlblk *kcb;
@@ -241,8 +242,8 @@ int __kprobes arc_kprobe_handler(unsigned long addr, struct pt_regs *regs)
241242
return 0;
242243
}
243244

244-
static int __kprobes arc_post_kprobe_handler(unsigned long addr,
245-
struct pt_regs *regs)
245+
static int
246+
__kprobes arc_post_kprobe_handler(unsigned long addr, struct pt_regs *regs)
246247
{
247248
struct kprobe *cur = kprobe_running();
248249
struct kprobe_ctlblk *kcb = get_kprobe_ctlblk();

0 commit comments

Comments
 (0)