Commit eabbc63c authored by Kai Germaschewski's avatar Kai Germaschewski Committed by Linus Torvalds

[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.
parent 862c759d
...@@ -840,7 +840,7 @@ void prepare_namespace(void) ...@@ -840,7 +840,7 @@ void prepare_namespace(void)
mount_devfs_fs (); mount_devfs_fs ();
} }
#ifdef BUILD_CRAMDISK #if defined(BUILD_CRAMDISK) && defined(CONFIG_BLK_DEV_RAM)
/* /*
* gzip declarations * gzip declarations
...@@ -985,4 +985,4 @@ static int __init crd_load(int in_fd, int out_fd) ...@@ -985,4 +985,4 @@ static int __init crd_load(int in_fd, int out_fd)
return result; return result;
} }
#endif /* BUILD_CRAMDISK */ #endif /* BUILD_CRAMDISK && CONFIG_BLK_DEV_RAM */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment