Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756083Ab0GFSIO (ORCPT ); Tue, 6 Jul 2010 14:08:14 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:56385 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752811Ab0GFSIA (ORCPT ); Tue, 6 Jul 2010 14:08:00 -0400 From: "Rafael J. Wysocki" To: Valdis.Kletnieks@vt.edu Subject: Re: mmotm 2010-07-01 pm_get_wakeup_count() declaration Date: Tue, 6 Jul 2010 20:06:13 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.35-rc4; KDE/4.4.4; x86_64; ; ) Cc: Andrew Morton , Pavel Machek , Len Brown , linux-kernel@vger.kernel.org, linux-pm@lists.linux-foundation.org References: <201007011948.o61JmnT2022795@imap1.linux-foundation.org> <201007052243.55551.rjw@sisk.pl> <2755.1278383075@localhost> In-Reply-To: <2755.1278383075@localhost> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Message-Id: <201007062006.13931.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1854 Lines: 38 On Tuesday, July 06, 2010, Valdis.Kletnieks@vt.edu wrote: > On Mon, 05 Jul 2010 22:43:55 +0200, "Rafael J. Wysocki" said: > > On Monday, July 05, 2010, Valdis.Kletnieks@vt.edu wrote: > > > On Thu, 01 Jul 2010 12:19:51 PDT, akpm@linux-foundation.org said: > > > > The mm-of-the-moment snapshot 2010-07-01-12-19 has been uploaded to > > > > > > Not sure who to blame for the commit, it was in the linux-next.patch and I'm > > > too lazy to pull down the git tree and dig it out. > > > > > > CC kernel/power/main.o > > > kernel/power/main.c: In function 'wakeup_count_show': > > > kernel/power/main.c:241: error: implicit declaration of function 'pm_get_wakeup_count' > > > kernel/power/main.c: In function 'wakeup_count_store': > > > kernel/power/main.c:251: error: implicit declaration of function 'pm_save_wakeup_count' > > > make[2]: *** [kernel/power/main.o] Error 1 > > > > > > Problem is that declaration in include/linux/suspend.h is wrapped in > > > a #ifdef CONFIG_PM_SLEEP, but the usage in kernel/power/main.c isn't. So > > > it dies a horrid death if your config doesn't include PM_SLEEP. > > > > Yeah, sorry. I'm in the process of fixing it up. > > I threw in some ad-crock #ifdef to get past that one, and hit > another one, same basic issue but include/linux/pm.h this time: > > CC drivers/base/power/sysfs.o > drivers/base/power/sysfs.c: In function 'wakeup_count_show': > drivers/base/power/sysfs.c:152: error: 'struct dev_pm_info' has no member named 'wakeup_count' > make[3]: *** [drivers/base/power/sysfs.o] Error 1 This also should be fixed in linux-next now. Rafael -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/