From: David Daney Date: Wed, 19 Jan 2011 23:24:42 +0000 (-0800) Subject: MIPS: Add an unreachable return statement to satisfy buggy GCCs. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e1c87d2a5567c7940d129a6045efadc4b8c0f888;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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: Jonas Gorski Signed-off-by: David Daney Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2010/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c index 083d3412d0bc..04f9e17db9d0 100644 --- a/arch/mips/mm/tlbex.c +++ b/arch/mips/mm/tlbex.c @@ -109,6 +109,8 @@ static bool scratchpad_available(void) static int scratchpad_offset(int i) { BUG(); + /* Really unreachable, but evidently some GCC want this. */ + return 0; } #endif /*