Skip to content

Commit

Permalink
sh: Add SH-5 subtypes to check_bugs() for utsname.
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jan 28, 2008
1 parent b4eaa1c commit 29e0d20
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions include/asm-sh/bugs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 29e0d20

Please sign in to comment.