projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a582e6f
)
alpha: Convert BUG() to use unreachable()
author
David Daney
<
[email protected]
>
Thu, 10 Dec 2009 23:07:24 +0000
(18:07 -0500)
committer
Matt Turner
<
[email protected]
>
Fri, 18 Dec 2009 06:14:52 +0000
(
01:14
-0500)
Use the new unreachable() macro instead of for(;;);
Signed-off-by: David Daney <
[email protected]
>
CC: Richard Henderson <
[email protected]
>
CC: Ivan Kokshaysky <
[email protected]
>
CC:
[email protected]
Signed-off-by: Matt Turner <
[email protected]
>
arch/alpha/include/asm/bug.h
patch
|
blob
|
history
diff --git
a/arch/alpha/include/asm/bug.h
b/arch/alpha/include/asm/bug.h
index 1720c8ad86fec780ca054e42ed8baaa21735e899..f091682e3cc84b4a9bffccc136147870b42fa6e0 100644
(file)
--- a/
arch/alpha/include/asm/bug.h
+++ b/
arch/alpha/include/asm/bug.h
@@
-13,7
+13,8
@@
"call_pal %0 # bugchk\n\t" \
".long %1\n\t.8byte %2" \
: : "i"(PAL_bugchk), "i"(__LINE__), "i"(__FILE__)); \
- for ( ; ; ); } while (0)
+ unreachable(); \
+ } while (0)
#define HAVE_ARCH_BUG
#endif