From: Andrew Morton <akpm@osdl.org>
To: Janet Morgan <janetmor@us.ibm.com>
Cc: linux-kernel@vger.kernel.org, akiyama.nobuyuk@jp.fujitsu.com,
janetmor@us.ibm.com
Subject: Re: 2.6.8-rc3-mm2: compile error proc_unknown_nmi_panic -> proc_dointvec
Date: Mon, 9 Aug 2004 11:30:12 -0700 [thread overview]
Message-ID: <20040809113012.7bed43fe.akpm@osdl.org> (raw)
In-Reply-To: <41175326.8000303@us.ibm.com>
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 */
_
prev parent reply other threads:[~2004-08-09 18:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040809113012.7bed43fe.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=akiyama.nobuyuk@jp.fujitsu.com \
--cc=janetmor@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.