Subject: Re: current build problem, linux_exec_setup_stack undeclared
To: None <christos@zoulas.com>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: current-users
Date: 08/13/2003 19:13:06
In article <HJJ8CE.IvB@tac.nyc.ny.us>
christos@zoulas.com wrote:
> >My compat/linux/arch/powerpc/linux_exec.h has this (updated last night):
> >#define linux_exec_setup_stack(a, b) exec_setup_stack(a, b)
> >Changing this to
> >#define linux_exec_setup_stack exec_setup_stack
> >allows a kernel to compile - I haven't been able to verify if this is
> >correct, though.
>
> Looks correct but the previous version should work. Can you look at the
> preprocessor output?
linux_exec_setup_stack is referred as a function pointer in exec_conf.c:
---
#ifdef COMPAT_LINUX
/* Linux Elf32 */
{ sizeof (Elf32_Ehdr),
[..snip..]
coredump_elf32,
linux_exec_setup_stack },
#endif
---
so the macro definition should not have args.
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp