Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da60682c authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

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: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 616df135
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -88,7 +88,7 @@ extern void warn_slowpath(const char *file, const int line,


#else /* !CONFIG_BUG */
#else /* !CONFIG_BUG */
#ifndef HAVE_ARCH_BUG
#ifndef HAVE_ARCH_BUG
#define BUG()
#define BUG() do {} while(0)
#endif
#endif


#ifndef HAVE_ARCH_BUG_ON
#ifndef HAVE_ARCH_BUG_ON