2.4.13-ac8: procfs compile fix
PATCH 1/1 2.4.13-ac8: procfs compile fix
The kernel fails to compile with procfs enabled and modules disabled.
2.4.13-ac8 adds a fops structure for /proc/ksyms, which is only defined if CONFIG_MODULES is set. However, the proc entry is still created if CONFIG_MODULES is not set.
fs/proc/proc_misc.c +2 -0
@@ -619,9 +619,11 @@ entry =create_proc_entry ("mounts" ,0 ,NULL );if (entry) entry->proc_fops = &proc_mounts_operations; +#ifdef CONFIG_MODULES entry =create_proc_entry ("ksyms" ,0 ,NULL );if (entry) entry->proc_fops = &proc_ksyms_operations; +#endif proc_root_kcore =create_proc_entry ("kcore" ,S_IRUSR ,NULL );if (proc_root_kcore) { proc_root_kcore->proc_fops = &proc_kcore_operations;
Robert Love