Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-03-07 00:40:14 -0800
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-03-07 00:40:14 -0800
commiteabbc63cda8ca79e5d33611b049a67a3afe085b6 (patch)
tree09fb55ec6c39c65cfd84e01ca74f112260f0d76f
parent862c759d87d381649f01e062a33b033e86ded96f (diff)
[PATCH] init/do_mounts compilation warning fix
The compiler warns about about crd_load being defined but never used with my config. The appended patch avoids compiling in the unused code in this case.
-rw-r--r--init/do_mounts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c
index bccbedeb026b..3d9e02856b96 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -840,7 +840,7 @@ out:
mount_devfs_fs ();
}
-#ifdef BUILD_CRAMDISK
+#if defined(BUILD_CRAMDISK) && defined(CONFIG_BLK_DEV_RAM)
/*
* gzip declarations
@@ -985,4 +985,4 @@ static int __init crd_load(int in_fd, int out_fd)
return result;
}
-#endif /* BUILD_CRAMDISK */
+#endif /* BUILD_CRAMDISK && CONFIG_BLK_DEV_RAM */