2.6.8-rc3-mm2: compile error proc_unknown_nmi_panic -> proc_dointvec
I'm getting the following error compiling 2.6.8-rc3-mm2:
arch/i386/kernel/nmi.c: In function `proc_unknown_nmi_panic':arch/i386/kernel/nmi.c:558: too few arguments to function `proc_dointvec' make[1]: *** [arch/i386/kernel/nmi.o] Error 1
make: *** [arch/i386/kernel] Error 2
Thanks,
-Janet
Quoted 7 lines · Janet Morgan
I'm getting the following error compiling 2.6.8-rc3-mm2:
arch/i386/kernel/nmi.c: In function `proc_unknown_nmi_panic':
arch/i386/kernel/nmi.c:558: too few arguments to function `proc_dointvec' make[1]: *** [arch/i386/kernel/nmi.o] Error 1
make: *** [arch/i386/kernel] Error 2
yup, sorry about that.
arch/i386/kernel/nmi.c renamed from arch/i386/kernel/nmi.c~nmi-build-fix +3 -3
@@ -524,13 +524,13 @@ static int unknown_nmi_panic_callback(st/* * proc handler for /proc/sys/kernel/unknown_nmi_panic */ -int proc_unknown_nmi_panic (ctl_table *table,int write, -struct file *file,void __user *buffer,size_t *length) +int proc_unknown_nmi_panic (ctl_table *table,int write,struct file *file, +void __user *buffer,size_t *length,loff_t *ppos) {int old_state; old_state = unknown_nmi_panic; -proc_dointvec (table, write, file, buffer, length); +proc_dointvec (table, write, file, buffer, length, ppos);if (!!old_state == !!unknown_nmi_panic)return 0 ;
kernel/sysctl.c renamed from kernel/sysctl.c~nmi-build-fix +1 -1
@@ -68,7 +68,7 @@ extern int printk_ratelimit_burst;#if defined(CONFIG_X86_LOCAL_APIC ) && defined(__i386__)int unknown_nmi_panic;extern int proc_unknown_nmi_panic (ctl_table *,int ,struct file *, -void __user *,size_t *); +void __user *,size_t *,loff_t *);#endif /* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
_