* 2.6.8-rc3-mm2: compile error proc_unknown_nmi_panic -> proc_dointvec
@ 2004-08-09 10:34 Janet Morgan
2004-08-09 18:30 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Janet Morgan @ 2004-08-09 10:34 UTC (permalink / raw)
To: linux-kernel; +Cc: akiyama.nobuyuk, Andrew Morton, 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
Thanks,
-Janet
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2.6.8-rc3-mm2: compile error proc_unknown_nmi_panic -> proc_dointvec
2004-08-09 10:34 2.6.8-rc3-mm2: compile error proc_unknown_nmi_panic -> proc_dointvec Janet Morgan
@ 2004-08-09 18:30 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2004-08-09 18:30 UTC (permalink / raw)
To: Janet Morgan; +Cc: linux-kernel, akiyama.nobuyuk, janetmor
Janet Morgan <janetmor@us.ibm.com> wrote:
>
> 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.
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:17:11.177604608 -0700
+++ 25-akpm/arch/i386/kernel/nmi.c 2004-08-08 16:17:11.181604000 -0700
@@ -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;
diff -puN kernel/sysctl.c~nmi-build-fix kernel/sysctl.c
--- 25/kernel/sysctl.c~nmi-build-fix 2004-08-08 16:17:11.178604456 -0700
+++ 25-akpm/kernel/sysctl.c 2004-08-08 16:17:11.191602480 -0700
@@ -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 */
_
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-09 18:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-09 10:34 2.6.8-rc3-mm2: compile error proc_unknown_nmi_panic -> proc_dointvec Janet Morgan
2004-08-09 18:30 ` Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.