Commit 872345b7 authored by Andrew Morton's avatar Andrew Morton Committed by Paul Mackerras

[PATCH] git-powerpc: WARN was a dumb idea

There are at least 14 different implementations of WARN() in the tree already.
The build fails all over the place.

Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 4d177fbf
......@@ -60,7 +60,7 @@ struct bug_entry *find_bug(unsigned long bugaddr);
} \
} while (0)
#define WARN() do { \
#define __WARN() do { \
__asm__ __volatile__( \
"1: twi 31,0,0\n" \
".section __bug_table,\"a\"\n" \
......@@ -73,7 +73,7 @@ struct bug_entry *find_bug(unsigned long bugaddr);
#define WARN_ON(x) do { \
if (__builtin_constant_p(x)) { \
if (x) \
WARN(); \
__WARN(); \
} else { \
__asm__ __volatile__( \
"1: "PPC_TLNEI" %0,0\n" \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment