From cd3f5389489146297eb2c11e4f9d1c4e8aaeb59f Mon Sep 17 00:00:00 2001 From: Andreas Herrmann Date: Wed, 28 May 2014 23:52:11 +0200 Subject: [PATCH] MIPS: OCTEON: Add OCTEON3 to __get_cpu_type Otherwise __builtin_unreachable might be called. Signed-off-by: Andreas Herrmann Cc: linux-mips@linux-mips.org Cc: David Daney Cc: James Hogan Cc: kvm@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/7014/ Signed-off-by: Ralf Baechle --- arch/mips/include/asm/cpu-type.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/include/asm/cpu-type.h b/arch/mips/include/asm/cpu-type.h index e3308b42343e..b4e2bd87df50 100644 --- a/arch/mips/include/asm/cpu-type.h +++ b/arch/mips/include/asm/cpu-type.h @@ -163,6 +163,7 @@ static inline int __pure __get_cpu_type(const int cpu_type) case CPU_CAVIUM_OCTEON: case CPU_CAVIUM_OCTEON_PLUS: case CPU_CAVIUM_OCTEON2: + case CPU_CAVIUM_OCTEON3: #endif #if defined(CONFIG_SYS_HAS_CPU_BMIPS32_3300) || \