projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ad6c42
)
parisc: Convert BUG() to use unreachable()
author
David Daney
<ddaney@caviumnetworks.com>
Thu, 10 Dec 2009 17:28:18 +0000
(17:28 +0000)
committer
Kyle McMartin
<kyle@mcmartin.ca>
Wed, 16 Dec 2009 03:48:55 +0000
(
03:48
+0000)
Use the new unreachable() macro instead of for(;;);
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
arch/parisc/include/asm/bug.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/parisc/include/asm/bug.h
b/arch/parisc/include/asm/bug.h
index 8cfc553fc837267e2342cbf66f4ef27efacde143..75e46c557a16901d03f93cb83d2b3838e7793172 100644
(file)
--- a/
arch/parisc/include/asm/bug.h
+++ b/
arch/parisc/include/asm/bug.h
@@
-32,14
+32,14
@@
"\t.popsection" \
: : "i" (__FILE__), "i" (__LINE__), \
"i" (0), "i" (sizeof(struct bug_entry)) ); \
-
for(;;) ;
\
+
unreachable();
\
} while(0)
#else
#define BUG() \
do { \
asm volatile(PARISC_BUG_BREAK_ASM : : ); \
-
for(;;) ;
\
+
unreachable();
\
} while(0)
#endif