* [PATCH 0/5] More unreachable() conversions.
@ 2009-12-10 17:25 David Daney
2009-12-10 17:28 ` [PATCH 3/5] powerpc: Convert BUG() to use unreachable() David Daney
0 siblings, 1 reply; 2+ messages in thread
From: David Daney @ 2009-12-10 17:25 UTC (permalink / raw)
To: Andrew Morton, David Howells, Koichi Yasutake, linux-am33-list,
Kyle McMartin, Helge Deller, linux-parisc, Benjamin Herrenschmidt,
Paul Mackerras, linuxppc-dev, Richard Henderson, Ivan Kokshaysky,
Matt Turner, linux-alpha, Mike Frysinger, uclinux-dist-devel
Cc: linux-arch, Linus Torvalds, Linux Kernel Mailing List
Back in commit 38938c879eb0c39edf85d5164aa0cffe2874304c the new macro
unreachable() was added. We can use it in BUG instead of a variety of
ad hoc endless loops.
This patch set consists of the patches from the original set that were
never Acked-by anyone. Although they are completely untested, they
seem plausible.
I don't plan on pushing these things out any more, so if you
like them please merge them via your architecture trees.
I will reply with the 5 patches.
David Daney (5):
mn10300: Convert BUG() to use unreachable()
parisc: Convert BUG() to use unreachable()
powerpc: Convert BUG() to use unreachable()
alpha: Convert BUG() to use unreachable()
blackfin: Convert BUG() to use unreachable()
arch/alpha/include/asm/bug.h | 3 ++-
arch/blackfin/include/asm/bug.h | 2 +-
arch/mn10300/include/asm/bug.h | 3 ++-
arch/parisc/include/asm/bug.h | 4 ++--
arch/powerpc/include/asm/bug.h | 2 +-
5 files changed, 8 insertions(+), 6 deletions(-)
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 3/5] powerpc: Convert BUG() to use unreachable()
2009-12-10 17:25 [PATCH 0/5] More unreachable() conversions David Daney
@ 2009-12-10 17:28 ` David Daney
0 siblings, 0 replies; 2+ messages in thread
From: David Daney @ 2009-12-10 17:28 UTC (permalink / raw)
To: linux-kernel, linux-arch
Cc: David Daney, linuxppc-dev, Paul Mackerras, akpm, torvalds
Use the new unreachable() macro instead of for(;;);
Signed-off-by: David Daney <ddaney@caviumnetworks•com>
CC: Benjamin Herrenschmidt <benh@kernel•crashing.org>
CC: Paul Mackerras <paulus@samba•org>
CC: linuxppc-dev@ozlabs•org
---
arch/powerpc/include/asm/bug.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/include/asm/bug.h b/arch/powerpc/include/asm/bug.h
index 64e1fdc..2c15212 100644
--- a/arch/powerpc/include/asm/bug.h
+++ b/arch/powerpc/include/asm/bug.h
@@ -68,7 +68,7 @@
_EMIT_BUG_ENTRY \
: : "i" (__FILE__), "i" (__LINE__), \
"i" (0), "i" (sizeof(struct bug_entry))); \
- for(;;) ; \
+ unreachable(); \
} while (0)
#define BUG_ON(x) do { \
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-10 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-10 17:25 [PATCH 0/5] More unreachable() conversions David Daney
2009-12-10 17:28 ` [PATCH 3/5] powerpc: Convert BUG() to use unreachable() David Daney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox