1
0
Fork 0

The default CONFIG_BUG=n version of BUG() should have an empty do...while

The default CONFIG_BUG=n version of BUG() should incorporate an empty a
do...while statement to avoid compilation weirdness.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
hifive-unleashed-5.1
David Howells 2009-04-15 19:34:56 +01:00 committed by Linus Torvalds
parent 616df13511
commit da60682c11
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ extern void warn_slowpath(const char *file, const int line,
#else /* !CONFIG_BUG */
#ifndef HAVE_ARCH_BUG
#define BUG()
#define BUG() do {} while(0)
#endif
#ifndef HAVE_ARCH_BUG_ON