Skip to content

Commit f517928

Browse files
committed
MIPS: Fix randconfig build error.
CC arch/mips/kernel/ptrace.o In file included from arch/mips/kernel/ptrace.c:42:0: arch/mips/kernel/ptrace.c: In function ‘mips_get_syscall_arg’: /home/ralf/src/linux/linux-mips/arch/mips/include/asm/syscall.h:60:1: error: control reaches end of non-void function [-Werror=return-type] cc1: all warnings being treated as errors make[2]: *** [arch/mips/kernel/ptrace.o] Error 1 make[1]: *** [arch/mips/kernel] Error 2 make: *** [arch/mips] Error 2 Fixed by marking the end of mips_get_syscall_arg() as unreachable. Signed-off-by: Ralf Baechle <[email protected]>
1 parent 0414855 commit f517928

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/mips/include/asm/syscall.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#ifndef __ASM_MIPS_SYSCALL_H
1414
#define __ASM_MIPS_SYSCALL_H
1515

16+
#include <linux/compiler.h>
1617
#include <linux/audit.h>
1718
#include <linux/elf-em.h>
1819
#include <linux/kernel.h>
@@ -57,6 +58,8 @@ static inline unsigned long mips_get_syscall_arg(unsigned long *arg,
5758
default:
5859
BUG();
5960
}
61+
62+
unreachable();
6063
}
6164

6265
static inline long syscall_get_return_value(struct task_struct *task,

0 commit comments

Comments
 (0)