aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/mm/tlbex.c
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2011-01-19 15:24:42 -0800
committerRalf Baechle <ralf@linux-mips.org>2011-03-14 21:07:24 +0100
commite1c87d2a5567c7940d129a6045efadc4b8c0f888 (patch)
treed5f224e735c2e6f2fdda82e56f9e0a4bc0e2fcf0 /arch/mips/mm/tlbex.c
parentb9f07eb2f25a64098e2ba223c1a2fe2a8f249e01 (diff)
downloadlinux-2.6.38-lt-ux500-e1c87d2a5567c7940d129a6045efadc4b8c0f888.tar.gz
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 <jonas.gorski@gmail.com> Signed-off-by: David Daney <ddaney@caviumnetworks.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2010/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm/tlbex.c')
-rw-r--r--arch/mips/mm/tlbex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c
index 083d3412d0b..04f9e17db9d 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
/*