diff options
author | David S. Miller | 2007-10-29 08:36:09 +0100 |
---|---|---|
committer | David S. Miller | 2007-10-31 23:30:52 +0100 |
commit | 7e5766fa9431602ef0e56ceae900d0cce3a78b96 (patch) | |
tree | 503f4ee5a97cabaa066bedcb8891b45e253e5128 /arch/sparc64/kernel/sparc64_ksyms.c | |
parent | [SPARC64]: Kill unused ITAG_MASK macro in ultra.S (diff) | |
download | kernel-qcow2-linux-7e5766fa9431602ef0e56ceae900d0cce3a78b96.tar.gz kernel-qcow2-linux-7e5766fa9431602ef0e56ceae900d0cce3a78b96.tar.xz kernel-qcow2-linux-7e5766fa9431602ef0e56ceae900d0cce3a78b96.zip |
[SPARC64]: Fix build failure when CONFIG_BUG is disabled.
When CONFIG_BUG is turned off, the standard trick of:
switch (x) {
case X:
...
case Y:
...
default:
BUG();
};
to mark impossible cases does not work because BUG() evalutes
to nothing and thus GCC just sees a fallthrough code path.
Add an explicit KERN_ERR log message and a do_exit() to trap
this case.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/sparc64_ksyms.c')
0 files changed, 0 insertions, 0 deletions