From: domen@coderock.org
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, domen@coderock.org, adobriyan@mail.ru
Subject: [patch 06/10] init/do_mounts_initrd.c: fix sparse warning
Date: Sat, 19 Mar 2005 14:17:32 +0100 [thread overview]
Message-ID: <20050319131732.75E071F23D@trashy.coderock.org> (raw)
Signed-off-by: Domen Puncer <domen@coderock.org>
---
kj-domen/init/do_mounts_initrd.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -puN init/do_mounts_initrd.c~sparse-init_do_mounts_initrd init/do_mounts_initrd.c
--- kj/init/do_mounts_initrd.c~sparse-init_do_mounts_initrd 2005-03-18 20:05:18.000000000 +0100
+++ kj-domen/init/do_mounts_initrd.c 2005-03-18 20:05:18.000000000 +0100
@@ -41,7 +41,7 @@ static int __init do_linuxrc(void * shel
static void __init handle_initrd(void)
{
int error;
- int i, pid;
+ int pid;
real_root_dev = new_encode_dev(ROOT_DEV);
create_dev("/dev/root.old", Root_RAM0, NULL);
@@ -58,7 +58,7 @@ static void __init handle_initrd(void)
pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD);
if (pid > 0) {
- while (pid != sys_wait4(-1, &i, 0, NULL))
+ while (pid != sys_wait4(-1, NULL, 0, NULL))
yield();
}
_
next reply other threads:[~2005-03-19 13:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-19 13:17 domen [this message]
2005-03-20 11:14 ` [patch 06/10 with proper signed-off] init/do_mounts_initrd.c: fix sparse warning Domen Puncer
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=20050319131732.75E071F23D@trashy.coderock.org \
--to=domen@coderock.org \
--cc=adobriyan@mail.ru \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/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