diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-22 13:11:39 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-28 13:18:55 +0900 |
commit | 29e0d209b38479e6817318a971082421a7d630b7 (patch) | |
tree | b95847220bbd916b4548d2c190df3d25f2112791 /include/asm-sh | |
parent | b4eaa1cc7ce8203ac9af9184c49c635ce79592b1 (diff) | |
download | op-kernel-dev-29e0d209b38479e6817318a971082421a7d630b7.zip op-kernel-dev-29e0d209b38479e6817318a971082421a7d630b7.tar.gz |
sh: Add SH-5 subtypes to check_bugs() for utsname.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh')
-rw-r--r-- | include/asm-sh/bugs.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/asm-sh/bugs.h b/include/asm-sh/bugs.h index b66139f..e2d7956 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; } |