From: Pavel Machek <pavel@suse.cz>
To: Andrew Morton <akpm@osdl.org>
Cc: Andi Kleen <ak@suse.de>,
linux-kernel@vger.kernel.org, Ian Kent <raven@themaw.net>,
Matt Mackall <mpm@selenic.com>
Subject: Re: initcall warnings in 2.6.17
Date: Tue, 2 May 2006 13:28:28 +0200 [thread overview]
Message-ID: <20060502112827.GA1677@elf.ucw.cz> (raw)
In-Reply-To: <20060428105403.250eb2d6.akpm@osdl.org>
Hi!
This should fix
> > initcall at 0xffffffff80249307: software_resume+0x0/0xcf(): returned with error code -2
warning.
Signed-off-by: Pavel Machek <pavel@suse.cz>
diff --git a/kernel/power/disk.c b/kernel/power/disk.c
index 81d4d98..1019aca 100644
--- a/kernel/power/disk.c
+++ b/kernel/power/disk.c
@@ -168,7 +168,7 @@ static int software_resume(void)
if (!swsusp_resume_device) {
if (!strlen(resume_file)) {
up(&pm_sem);
- return -ENOENT;
+ return 0;
}
swsusp_resume_device = name_to_dev_t(resume_file);
pr_debug("swsusp: Resume From Partition %s\n", resume_file);
--
Thanks for all the (sleeping) penguins.
next prev parent reply other threads:[~2006-05-02 11:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-28 12:06 initcall warnings in 2.6.17 Andi Kleen
2006-04-28 17:54 ` Andrew Morton
2006-04-28 18:14 ` Pavel Machek
2006-05-02 11:28 ` Pavel Machek [this message]
2006-05-02 22:44 ` [PATCH] clean-up initcall warning for netconsole Matt Mackall
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=20060502112827.GA1677@elf.ucw.cz \
--to=pavel@suse.cz \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mpm@selenic.com \
--cc=raven@themaw.net \
/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