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

microblaze: Fix missing microblaze specific syscalls declaration

Warning log:
CHECK arch/microblaze/kernel/sys_microblaze.c
arch/microblaze/kernel/sys_microblaze.c:37:17: warning: symbol 'microblaze_vfork' was not declared. Should it be static?
arch/microblaze/kernel/sys_microblaze.c:43:17: warning: symbol 'microblaze_clone' was not declared. Should it be static?
arch/microblaze/kernel/sys_microblaze.c:50:17: warning: symbol 'microblaze_execve' was not declared. Should it be static?

Signed-off-by: Michal Simek <monstr@monstr.eu>

+10 -1
+8
arch/microblaze/include/asm/syscalls.h
··· 1 1 #ifndef __ASM_MICROBLAZE_SYSCALLS_H 2 2 3 + asmlinkage long microblaze_vfork(struct pt_regs *regs); 4 + asmlinkage long microblaze_clone(int flags, unsigned long stack, 5 + struct pt_regs *regs); 6 + asmlinkage long microblaze_execve(const char __user *filenamei, 7 + const char __user *const __user *argv, 8 + const char __user *const __user *envp, 9 + struct pt_regs *regs); 10 + 3 11 asmlinkage long sys_clone(int flags, unsigned long stack, struct pt_regs *regs); 4 12 #define sys_clone sys_clone 5 13
+2 -1
arch/microblaze/kernel/sys_microblaze.c
··· 40 40 regs, 0, NULL, NULL); 41 41 } 42 42 43 - asmlinkage long microblaze_clone(int flags, unsigned long stack, struct pt_regs *regs) 43 + asmlinkage long microblaze_clone(int flags, unsigned long stack, 44 + struct pt_regs *regs) 44 45 { 45 46 if (!stack) 46 47 stack = regs->r1;