提交 e1c87d2a 编写于 作者: D David Daney 提交者: Ralf Baechle

MIPS: Add an unreachable return statement to satisfy buggy GCCs.

It was reported that GCC-4.3.3 (with CodeSourcery extensions) fails
without this.
Reported-by: NJonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: NDavid Daney <ddaney@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2010/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 b9f07eb2
...@@ -109,6 +109,8 @@ static bool scratchpad_available(void) ...@@ -109,6 +109,8 @@ static bool scratchpad_available(void)
static int scratchpad_offset(int i) static int scratchpad_offset(int i)
{ {
BUG(); BUG();
/* Really unreachable, but evidently some GCC want this. */
return 0;
} }
#endif #endif
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册