]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Convert BUG() to use unreachable()
authorDavid Daney <ddaney@caviumnetworks.com>
Sat, 5 Dec 2009 01:44:51 +0000 (17:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 5 Dec 2009 17:10:12 +0000 (09:10 -0800)
commitfd82a94c3037dff65534b2fdba4f0a453f522900
tree2771bcf886ea10c88759445c0c4599bfca20b5e8
parentd385ba8dbb97f3672b07e3e7c924741e7d9cf2ed
x86: Convert BUG() to use unreachable()

Use the new unreachable() macro instead of for(;;);.  When
allyesconfig is built with a GCC-4.5 snapshot on i686 the size of the
text segment is reduced by 3987 bytes (from 6827019 to 6823032).

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Acked-by: "H. Peter Anvin" <hpa@zytor.com>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Ingo Molnar <mingo@redhat.com>
CC: x86@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/bug.h