Skip to contentSkip to conversation

proc_misc.c compile fix for 2.4.15-pre3

PATCH New Mikael Pettersson 1 participant 1 message Nov 11, 2001 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proc_misc.c compile fix for 2.4.15-pre3

proc_misc.c won't compile in 2.4.15-pre3 if CONFIG_MODULES is disabled. Obvious fix below.

/Mikael

fs/proc/proc_misc.c renamed from fs/proc/proc_misc.c.~1~ +2 -0
@@ -568,9 +568,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;