public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix CONFIG_SYSFS=n compile warning
@ 2004-04-22 15:10 Matt Mackall
  0 siblings, 0 replies; only message in thread
From: Matt Mackall @ 2004-04-22 15:10 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel

>From -tiny

Index: tiny/init/do_mounts.c
===================================================================
--- tiny.orig/init/do_mounts.c	2004-04-21 12:49:23.000000000 -0500
+++ tiny/init/do_mounts.c	2004-04-22 10:07:45.000000000 -0500
@@ -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;


-- 
Matt Mackall : http://www.selenic.com : Linux development and consulting

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

only message in thread, other threads:[~2004-04-22 15:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-22 15:10 [PATCH] fix CONFIG_SYSFS=n compile warning Matt Mackall

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