lkml.org 
[lkml]   [2001]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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

--- linux-2.4.15-pre3/fs/proc/proc_misc.c.~1~ Sun Nov 11 22:17:54 2001
+++ linux-2.4.15-pre3/fs/proc/proc_misc.c Sun Nov 11 22:31:35 2001
@@ -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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.027 / U:1.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site