Re: 2.6.8-rc3-mm2

Andrew Morton
2004-08-08T23:06:45Z

Brice Goglin <Brice.Goglin@ens-lyon.fr> wrote:
>
> I got this compile error on my Compaq Evo N600c. .config is attached.
>
> CC arch/i386/kernel/nmi.o
> arch/i386/kernel/nmi.c: In function proc_unknown_nmi_panic':
> arch/i386/kernel/nmi.c:558: error: too few arguments to function proc_dointvec'
> make[1]: *** [arch/i386/kernel/nmi.o] Erreur 1

uh, OK. The below is probably wrongish, but it'll get you thorugh.

diff -puN arch/i386/kernel/nmi.c~nmi-build-fix arch/i386/kernel/nmi.c
--- 25/arch/i386/kernel/nmi.c~nmi-build-fix 2004-08-08 16:03:28.141725080 -0700
+++ 25-akpm/arch/i386/kernel/nmi.c 2004-08-08 16:04:13.168879912 -0700
@@ -555,7 +555,7 @@ int proc_unknown_nmi_panic(ctl_table *ta
int old_state;

old_state = unknown_nmi_panic;
- proc_dointvec(table, write, file, buffer, length);
+ proc_dointvec(table, write, file, buffer, length, &file->f_pos);
if (!!old_state == !!unknown_nmi_panic)
return 0;

_