commit | 7e5766fa9431602ef0e56ceae900d0cce3a78b96 | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@bnsf.davemloft.net> | Mon Oct 29 00:36:09 2007 -0700 |
committer | David S. Miller <davem@sunset.davemloft.net> | Wed Oct 31 15:30:52 2007 -0700 |
tree | 503f4ee5a97cabaa066bedcb8891b45e253e5128 | |
parent | 099d575aaf3dcf4c9c1e0b53c7b17c5faddb1b59 [diff] |
[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>