* [PATCH] proc_misc.c compile fix for 2.4.15-pre3
@ 2001-11-11 22:40 Mikael Pettersson
0 siblings, 0 replies; only message in thread
From: Mikael Pettersson @ 2001-11-11 22:40 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-11-11 22:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-11 22:40 [PATCH] proc_misc.c compile fix for 2.4.15-pre3 Mikael Pettersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).