From: David S. Miller Date: Mon, 29 Oct 2007 07:36:09 +0000 (-0700) Subject: [SPARC64]: Fix build failure when CONFIG_BUG is disabled. X-Git-Tag: v2.6.24-rc2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e5766fa9431602ef0e56ceae900d0cce3a78b96;p=pandora-kernel.git [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 --- Reading git-diff-tree failed