[PATCH] fix CONFIG_SYSFS=n compile warning

From: Matt Mackall
Date: Thu Apr 22 2004 - 10:12:05 EST


>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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/