From: Paul Mundt Date: Thu, 22 Nov 2007 04:11:39 +0000 (+0900) Subject: sh: Add SH-5 subtypes to check_bugs() for utsname. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=29e0d209b38479e6817318a971082421a7d630b7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git sh: Add SH-5 subtypes to check_bugs() for utsname. Signed-off-by: Paul Mundt --- diff --git a/include/asm-sh/bugs.h b/include/asm-sh/bugs.h index b66139ff73fc..e2d79567e2a9 100644 --- a/include/asm-sh/bugs.h +++ b/include/asm-sh/bugs.h @@ -48,9 +48,16 @@ static void __init check_bugs(void) *p++ = 's'; *p++ = 'p'; break; - default: - *p++ = '?'; - *p++ = '!'; + case CPU_SH5_101 ... CPU_SH5_103: + *p++ = '6'; + *p++ = '4'; + break; + case CPU_SH_NONE: + /* + * Specifically use CPU_SH_NONE rather than default:, + * so we're able to have the compiler whine about + * unhandled enumerations. + */ break; }