The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] 2.4.13-ac8: procfs compile fix
@ 2001-11-06  0:02 Robert Love
  0 siblings, 0 replies; only message in thread
From: Robert Love @ 2001-11-06  0:02 UTC (permalink / raw)
  To: laughing; +Cc: linux-kernel

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.

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-06  0:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-06  0:02 [PATCH] 2.4.13-ac8: procfs compile fix Robert Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox