]> git.hungrycats.org Git - linux/commitdiff
[PATCH] init/do_mounts compilation warning fix
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Thu, 7 Mar 2002 08:40:14 +0000 (00:40 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 7 Mar 2002 08:40:14 +0000 (00:40 -0800)
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.

init/do_mounts.c

index bccbedeb026b4c7e6c59dcd37b400fe878073f8f..3d9e02856b960c46e9c1a4b71c692359f23248d4 100644 (file)
@@ -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 */