Re: [PATCH] arch-specific callout in panic()

From: Arnd Bergmann
Date: Mon Feb 23 2004 - 04:32:06 EST


Mike Strosaker <strosake@xxxxxxxxxxxxxx> wrote:
>@@ -53,7 +53,8 @@
> static char buf[1024];
> va_list args;
> #if defined(CONFIG_ARCH_S390)
>- unsigned long caller = (unsigned long) __builtin_return_address(0);
>+ extern unsigned long panic_caller;
>+ panic_caller = (unsigned long) __builtin_return_address(0);
> #endif
>
> bust_spinlocks(1);
...
>+ machine_panic();
>+

Why don't you just pass __builtin_return_address(0) to machine_panic for
everyone? It will get you rid of the #ifdef completely and the argument
can still be ignored.
Also, arch_panic() might be a little clearer than machine_panic().

Arnd <><

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/