lkml.org 
[lkml]   [2008]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH -next] initramfs: fix compilation warning
    From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

    CC init/initramfs.o
    init/initramfs.c:517: warning: 'clean_rootfs' defined but not used

    clean_rootfs is not used when CONFIG_BLK_DEV_RAM disabled.

    Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
    ---
    init/initramfs.c | 2 ++
    1 files changed, 2 insertions(+), 0 deletions(-)

    diff --git a/init/initramfs.c b/init/initramfs.c
    index da8d030..2f056e2 100644
    --- a/init/initramfs.c
    +++ b/init/initramfs.c
    @@ -512,6 +512,7 @@ skip:
    initrd_end = 0;
    }

    +#ifdef CONFIG_BLK_DEV_RAM
    #define BUF_SIZE 1024
    static void __init clean_rootfs(void)
    {
    @@ -558,6 +559,7 @@ static void __init clean_rootfs(void)
    sys_close(fd);
    kfree(buf);
    }
    +#endif

    static int __init populate_rootfs(void)
    {
    --
    1.5.6


    \
     
     \ /
      Last update: 2008-08-27 01:59    [W:0.043 / U:1.520 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site