From 81567845df111cb89264475fd83b1ca4b94cff61 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 26 Apr 2004 09:01:25 -0700 Subject: [PATCH] [PATCH] fix CONFIG_SYSFS=n compile warning From: Matt Mackall --- init/do_mounts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init/do_mounts.c b/init/do_mounts.c index 02385f3c7697..7f87ff74d11f 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -194,9 +194,11 @@ dev_t __init name_to_dev_t(char *name) 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; -- 2.39.5