From: Steven Noonan <steven@uplinklabs.net>
To: linux-kernel@vger.kernel.org
Cc: mingo@elite.hu, steven@uplinklabs.net
Subject: [PATCH] init/initramfs.c: unused function when compiling without CONFIG_BLK_DEV_RAM
Date: Mon, 8 Sep 2008 16:19:10 -0700 [thread overview]
Message-ID: <1220915951-11434-2-git-send-email-steven@uplinklabs.net> (raw)
In-Reply-To: <1220915951-11434-1-git-send-email-steven@uplinklabs.net>
Fixing compiler warning when the kernel isn't compiled with support
for RAM block devices enabled.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
---
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.6.0.1
next prev parent reply other threads:[~2008-09-09 6:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-08 23:19 [PATCH] x86: fix HPET compiler error when not using CONFIG_PCI_MSI Steven Noonan
2008-09-08 23:19 ` Steven Noonan [this message]
2008-09-08 23:19 ` [PATCH] x86: unused variable in dma_alloc_coherent_gfp_flags() Steven Noonan
2008-09-09 6:57 ` Ingo Molnar
2008-09-09 7:04 ` FUJITA Tomonori
2008-09-09 7:13 ` Ingo Molnar
2008-09-09 6:51 ` [PATCH] init/initramfs.c: unused function when compiling without CONFIG_BLK_DEV_RAM Ingo Molnar
2008-09-09 6:56 ` [PATCH] x86: fix HPET compiler error when not using CONFIG_PCI_MSI Ingo Molnar
2008-09-09 0:13 ` Steven Noonan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1220915951-11434-2-git-send-email-steven@uplinklabs.net \
--to=steven@uplinklabs.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elite.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®