projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
616df13
)
The default CONFIG_BUG=n version of BUG() should have an empty do...while
author
David Howells
<dhowells@redhat.com>
Wed, 15 Apr 2009 18:34:56 +0000
(19:34 +0100)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 15 Apr 2009 20:55:13 +0000
(13:55 -0700)
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>
include/asm-generic/bug.h
patch
|
blob
|
history
diff --git
a/include/asm-generic/bug.h
b/include/asm-generic/bug.h
index
37b82cb
..
e727fe0
100644
(file)
--- a/
include/asm-generic/bug.h
+++ b/
include/asm-generic/bug.h
@@
-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