[PATCH] Re: [BUG] 2.4.15-pre3 compile failure

From: Robert Love (rml@tech9.net)
Date: Sun Nov 11 2001 - 23:32:46 EST


On Sun, 2001-11-11 at 23:24, Barry K. Nathan wrote:
> proc_misc.c: In function `proc_misc_init':
> proc_misc.c:573: `proc_ksyms_operations' undeclared (first use in this function)proc_misc.c:573: (Each undeclared identifier is reported only once
> proc_misc.c:573: for each function it appears in.)

Hm, this was a bug in 2.4.13-ac8. I guess Linus merged it into pre3. I
sent Alan a patch, here it is:

--- linux-2.4.13-ac8/fs/proc/proc_misc.c Mon Nov 5 17:34:08 2001
+++ linux/fs/proc/proc_misc.c Mon Nov 5 18:29:55 2001
@@ -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

-
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/



This archive was generated by hypermail 2b29 : Thu Nov 15 2001 - 21:00:27 EST