Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <lkft@linaro.org>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>

+5 -4
+1 -1
arch/arc/include/asm/ptrace.h
··· 169 169 return *(unsigned long *)((unsigned long)regs + offset); 170 170 } 171 171 172 - extern int syscall_trace_entry(struct pt_regs *); 172 + extern int syscall_trace_enter(struct pt_regs *); 173 173 extern void syscall_trace_exit(struct pt_regs *); 174 174 175 175 #endif /* !__ASSEMBLY__ */
+4 -3
arch/arc/kernel/kprobes.c
··· 190 190 } 191 191 } 192 192 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) 194 195 { 195 196 struct kprobe *p; 196 197 struct kprobe_ctlblk *kcb; ··· 242 241 return 0; 243 242 } 244 243 245 - static int __kprobes arc_post_kprobe_handler(unsigned long addr, 246 - struct pt_regs *regs) 244 + static int 245 + __kprobes arc_post_kprobe_handler(unsigned long addr, struct pt_regs *regs) 247 246 { 248 247 struct kprobe *cur = kprobe_running(); 249 248 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk();