Re: 2.6.8-rc3-mm2

From: Andrew Morton
Date: Sun Aug 08 2004 - 18:20:01 EST


Andrew Morton <akpm@xxxxxxxx> wrote:
>
> The below is probably wrongish, but it'll get you thorugh.

<actually looks>

This is the correct patch.

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:15:55.998033640 -0700
+++ 25-akpm/arch/i386/kernel/nmi.c 2004-08-08 16:15:56.003032880 -0700
@@ -549,13 +549,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:15:56.000033336 -0700
+++ 25-akpm/kernel/sysctl.c 2004-08-08 16:15:56.004032728 -0700
@@ -69,7 +69,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 */
_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/