Skip to contentSkip to conversation

fix CONFIG_SYSFS=n compile warning

PATCH New Matt Mackall 1 participant 1 message Apr 22, 2004 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix CONFIG_SYSFS=n compile warning

Quoted 1 line

From -tiny

init/do_mounts.c +2 -0
Index: tiny/init/do_mounts.c
===================================================================
@@ -194,9 +194,11 @@
 	p[-1] = '\0';
 	res = try_name(s, part);
 done:
+#ifdef CONFIG_SYSFS
 	sys_umount("/sys", 0);
 out:
 	sys_rmdir("/sys");
+#endif
 	return res;
 fail:
 	res = 0;
Signature · 1 line
Matt Mackall : http://www.selenic.com : Linux development and consulting