From: Andreas Herrmann Date: Wed, 28 May 2014 21:52:11 +0000 (+0200) Subject: MIPS: OCTEON: Add OCTEON3 to __get_cpu_type X-Git-Tag: firefly_0821_release~176^2~3807^2~15 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cd3f5389489146297eb2c11e4f9d1c4e8aaeb59f;p=firefly-linux-kernel-4.4.55.git 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 --- 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) || \