]> Pileus Git - ~andy/linux/commitdiff
powerpc: Use WARN_ON(1) instead of __WARN()
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 17 Jul 2008 04:46:00 +0000 (14:46 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 22 Jul 2008 00:39:34 +0000 (10:39 +1000)
__WARN() is not defined for all configs, use WARN_ON(1) instead.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/lib/feature-fixups.c

index 4e43702b98135bb20934619ad628fce6669133ce..8c5a03be31e07766d123460cf8b273ed6dab6d0b 100644 (file)
@@ -99,7 +99,7 @@ void do_feature_fixups(unsigned long value, void *fixup_start, void *fixup_end)
 
        for (; fcur < fend; fcur++) {
                if (patch_feature_section(value, fcur)) {
-                       __WARN();
+                       WARN_ON(1);
                        printk("Unable to patch feature section at %p - %p" \
                                " with %p - %p\n",
                                calc_addr(fcur, fcur->start_off),