From: Andrea Righi <righi.andrea@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>,
David Brownell <david-b@pacbell.net>
Cc: Ingo Molnar <mingo@elte.hu>, Pavel Machek <pavel@suse.cz>,
linux-pm@lists.linux-foundation.org,
linux-kernel@vger.kernel.org,
Andrea Righi <righi.andrea@gmail.com>
Subject: [PATCH -mm] PM: fix 2.6.26-rc5-mm3 build error with CONFIG_PM_TEST_SUSPEND=y
Date: Sun, 15 Jun 2008 16:28:32 +0200 [thread overview]
Message-ID: <1213540112-2918-1-git-send-email-righi.andrea@gmail.com> (raw)
In-Reply-To: <>
kernel/power/main.c: In function ‘test_suspend’:
kernel/power/main.c:688: warning: passing argument 2 of ‘class_find_device’ from incompatible pointer type
kernel/power/main.c:688: error: too few arguments to function ‘class_find_device’
make[2]: *** [kernel/power/main.o] Error 1
make[1]: *** [kernel/power] Error 2
make: *** [kernel] Error 2
Signed-off-by: Andrea Righi <righi.andrea@gmail.com>
---
kernel/power/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/power/main.c b/kernel/power/main.c
index e937cc8..2bf3d5b 100644
--- a/kernel/power/main.c
+++ b/kernel/power/main.c
@@ -685,7 +685,7 @@ static int __init test_suspend(void)
}
/* RTCs have initialized by now too ... can we use one? */
- class_find_device(rtc_class, &pony, has_wakealarm);
+ class_find_device(rtc_class, NULL, &pony, has_wakealarm);
if (pony)
rtc = rtc_class_open(pony);
if (!rtc) {
--
1.5.4.3
reply other threads:[~2008-06-15 14:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1213540112-2918-1-git-send-email-righi.andrea@gmail.com \
--to=righi.andrea@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=david-b@pacbell.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=mingo@elte.hu \
--cc=pavel@suse.cz \
/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®