diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-03-07 00:40:14 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-03-07 00:40:14 -0800 |
| commit | eabbc63cda8ca79e5d33611b049a67a3afe085b6 (patch) | |
| tree | 09fb55ec6c39c65cfd84e01ca74f112260f0d76f /init | |
| parent | 862c759d87d381649f01e062a33b033e86ded96f (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.
Diffstat (limited to 'init')
| -rw-r--r-- | init/do_mounts.c | 4 |
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 */ |
