David S. Miller 7e5766fa94 [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>
2007-10-31 15:30:52 -07:00
..
2007-10-23 12:31:05 +02:00
2007-10-23 11:20:26 +02:00
2007-10-20 01:34:40 +02:00
2007-10-27 22:18:11 -07:00
2007-10-20 01:14:39 +02:00
2007-10-24 08:55:40 +02:00
2007-10-23 09:49:31 +02:00
2007-10-29 07:41:32 -07:00
2007-10-20 01:24:05 +02:00