On architectures without special personalities setarch uses the contents
of a local variable with automatic storage duration after return from
the function, causing it to report a spurious error.
$ setarch m68k
setarch: Kernel cannot set architecture to m68k
Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
*/
static struct arch_domain *init_arch_domains(void)
{
- struct utsname un;
+ static struct utsname un;
size_t i;
static struct arch_domain transitions[] =