--- zzzz-none-000/linux-2.6.13.1/fs/proc/proc_misc.c 2005-09-10 02:42:58.000000000 +0000 +++ ohio-7170-487/linux-2.6.13.1/fs/proc/proc_misc.c 2006-12-19 12:36:00.000000000 +0000 @@ -52,6 +52,13 @@ #include #include "internal.h" +#if defined (CONFIG_PROC_FS) +/* <<<< 20060608 =OS= -- sync-on-demand status/control */ + +extern void setup_sod_procfs (void); +extern void shutdown_sod_procfs (void); +#endif + #define LOAD_INT(x) ((x) >> FSHIFT) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) /* @@ -541,7 +548,7 @@ if (count) { char c; - if (get_user(c, buf)) + if (get_user(c, (char __user *)buf)) return -EFAULT; __handle_sysrq(c, NULL, NULL, 0); } @@ -637,4 +644,10 @@ entry->proc_fops = &ppc_htab_operations; } #endif + +#if defined (CONFIG_PROC_FS) + /* <<<< 20060608 =OS= -- sync-on-demand status/control */ + + setup_sod_procfs (); +#endif }