]> code.ossystems Code Review - openembedded-core.git/blob
159f988670b05501d9693af92b1dc486af524779
[openembedded-core.git] /
1 From b4931e6c151acad06b4c12dc7cdb634366d7d27a Mon Sep 17 00:00:00 2001
2 From: Steven Noonan <steven@uplinklabs.net>
3 Date: Mon, 8 Sep 2008 16:19:10 -0700
4 Subject: [PATCH] init/initramfs.c: unused function when compiling without CONFIG_BLK_DEV_RAM
5
6 Fixing compiler warning when the kernel isn't compiled with support
7 for RAM block devices enabled.
8
9 Signed-off-by: Steven Noonan <steven@uplinklabs.net>
10 Signed-off-by: Ingo Molnar <mingo@elte.hu>
11 ---
12  init/initramfs.c |    2 ++
13  1 files changed, 2 insertions(+), 0 deletions(-)
14
15 diff --git a/init/initramfs.c b/init/initramfs.c
16 index da8d030..2f056e2 100644
17 --- a/init/initramfs.c
18 +++ b/init/initramfs.c
19 @@ -512,6 +512,7 @@ skip:
20         initrd_end = 0;
21  }
22  
23 +#ifdef CONFIG_BLK_DEV_RAM
24  #define BUF_SIZE 1024
25  static void __init clean_rootfs(void)
26  {
27 @@ -558,6 +559,7 @@ static void __init clean_rootfs(void)
28         sys_close(fd);
29         kfree(buf);
30  }
31 +#endif
32  
33  static int __init populate_rootfs(void)
34  {
35 -- 
36 1.5.4.3
37