linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: suspend tree build failure
@ 2009-08-18  8:30 Stephen Rothwell
  2009-08-18 21:43 ` Rafael J. Wysocki
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2009-08-18  8:30 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-next, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 737 bytes --]

Hi Rafael,

Today's linux-next build (i386 defconfig) failed like this:

drivers/base/power/main.c: In function 'device_pm_init':
drivers/base/power/main.c:59: error: 'struct dev_pm_info' has no member named 'lock'

Caused by commit ea8e84f27325d9ddc7692f728a10e0a22cd59f52 ("PM: Introduce
core framework for run-time PM of I/O devices (rev. 17)") from the
suspend tree.  The i386 defconfig does not have CONFIG_PM_RUNTIME set but
does have CONFIG_PM_SLEEP=y ...

I have reverted that commit for today.

When you add a new CONFIG variable, it is worth doing test builds both
with it turned on and turned off ...

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread
* linux-next: suspend tree build failure
@ 2009-10-12  3:00 Stephen Rothwell
  2009-10-12 22:44 ` Rafael J. Wysocki
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2009-10-12  3:00 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-next, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2206 bytes --]

Hi Rafael,

Today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/base/power/main.c: In function 'device_pm_wait':
drivers/base/power/main.c:218: error: 'TASK_UNINTERRUPTIBLE' undeclared (first use in this function)
drivers/base/power/main.c:218: error: (Each undeclared identifier is reported only once
drivers/base/power/main.c:218: error: for each function it appears in.)
drivers/base/power/main.c:218: error: implicit declaration of function 'schedule'
drivers/base/power/main.c: In function 'dbg_show_time':
drivers/base/power/main.c:514: error: implicit declaration of function 'task_pid_nr'
drivers/base/power/main.c: In function '__device_resume_noirq':
drivers/base/power/main.c:551: error: 'TASK_NORMAL' undeclared (first use in this function)
drivers/base/power/main.c: In function '__device_resume':
drivers/base/power/main.c:713: error: 'TASK_NORMAL' undeclared (first use in this function)
drivers/base/power/main.c: In function '__device_suspend_noirq':
drivers/base/power/main.c:970: error: 'TASK_NORMAL' undeclared (first use in this function)
drivers/base/power/main.c: In function '__device_suspend':
drivers/base/power/main.c:1145: error: 'TASK_NORMAL' undeclared (first use in this function)

Presumably caused by commit d43c36dc6b357fa1806800f18aa30123c747a6d1
("headers: remove sched.h from interrupt.h") from Linus' tree.

I have added the following patch for today.

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 12 Oct 2009 13:48:27 +1100
Subject: [PATCH] suspend: using TASK_ macros requires sched.h

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/base/power/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index 3b09009..fb1c648 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -29,6 +29,7 @@
 #include <linux/async.h>
 #include <linux/completion.h>
 #include <linux/time.h>
+#include <linux/sched.h>
 
 #include "../base.h"
 #include "power.h"
-- 
1.6.4.3

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply related	[flat|nested] 23+ messages in thread
* linux-next: suspend tree build failure
@ 2009-10-08  4:30 Stephen Rothwell
  0 siblings, 0 replies; 23+ messages in thread
From: Stephen Rothwell @ 2009-10-08  4:30 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-next, linux-kernel, Tejun Heo

[-- Attachment #1: Type: text/plain, Size: 477 bytes --]

Hi Rafael,

Today's linux-next build (powerpc allyesconfig) failed like this:

kernel/power/process.c: In function 'try_to_freeze_tasks':
kernel/power/process.c:72: error: implicit declaration of function 'msleep'

Caused by commit a48145a7cbf3b0555ba3ad61aaf2c38719bab95d ("PM / freezer:
Don't get over-anxious while waiting") which I have reverted for today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread
* linux-next: suspend tree build failure
@ 2009-10-06  2:55 Stephen Rothwell
  2009-10-06 22:31 ` Rafael J. Wysocki
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2009-10-06  2:55 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-next, linux-kernel, Stephen Hemminger

[-- Attachment #1: Type: text/plain, Size: 510 bytes --]

Hi Rafael,

Today's linux-next build (x86_64 allmodconfig) failed like this:

kernel/freezer.c:27: error: expected ',' or ';' before '{' token

Caused by commit 9a4801cb8df76263abbb3049c0208625b7f34286 ("PM / freezer:
Make refrigerator cold") which neglected to include linux/compiler.h for
the definition of __cold.

I have used the version of the suspend tree from next-20091002 for today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread
* linux-next: suspend tree build failure
@ 2009-10-05  5:00 Stephen Rothwell
  2009-10-05 23:55 ` Rafael J. Wysocki
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2009-10-05  5:00 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-next, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 719 bytes --]

Hi Rafael,

Today's linux-next build (powerpc ppc64_defconfig) failed like this:

drivers/built-in.o: In function `.device_initialize':
(.text+0x95cf4): undefined reference to `.device_pm_init'
drivers/built-in.o: In function `.device_del':
(.text+0x95ec4): undefined reference to `.device_pm_remove'
drivers/built-in.o: In function `.device_add':
(.text+0x965cc): undefined reference to `.device_pm_add'

Caused by commit 1db698d9d2c5a2f4032e620dd18c75b61eaca2c8 ("PM: Introduce
PM links framework").  This build has CONFIG_PM not set.

I have used the suspend tree from next-20091002 for today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread
* linux-next: suspend  tree build failure
@ 2009-08-17  8:40 Stephen Rothwell
  2009-08-17 12:06 ` Rafael J. Wysocki
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2009-08-17  8:40 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-next, linux-kernel

[Sorry if some get this twice, I fixed up the subject.]

Hi Rafael,

Today's linux-next build (powerpc allyesconfig) failed like this:

drivers/base/power/runtime.c:948: error: __ksymtab_pm_runtime_disable causes a section type conflict

Caused by commit d9d4cc5169ca18df9ff5afd31c6e6b715ecb454a ("PM: Introduce
core framework for run-time PM of I/O devices (rev. 17)") from the
suspend tree.  This commit EXPORTs pm_runtime_disable which is an inline
function that calls __pm_runtime_disable (which is probably what was
meant to be EXPORTed).

I wish we could get these type of errors to fail on x86 as well ...

I have applied the following patch for today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 17 Aug 2009 18:34:28 +1000
Subject: [PATCH] suspend: EXPORT the correct function.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/base/power/runtime.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c
index 28a3f91..38556f6 100644
--- a/drivers/base/power/runtime.c
+++ b/drivers/base/power/runtime.c
@@ -945,7 +945,7 @@ void __pm_runtime_disable(struct device *dev, bool check_resume)
  out:
 	spin_unlock_irq(&dev->power.lock);
 }
-EXPORT_SYMBOL_GPL(pm_runtime_disable);
+EXPORT_SYMBOL_GPL(__pm_runtime_disable);
 
 /**
  * pm_runtime_enable - Enable run-time PM of a device.
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 23+ messages in thread
* linux-next: suspend tree build failure
@ 2009-03-16  9:13 Stephen Rothwell
  2009-03-16 22:07 ` Rafael J. Wysocki
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2009-03-16  9:13 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-next

[-- Attachment #1: Type: text/plain, Size: 671 bytes --]

Hi Rafael,

Today's linux-next build (powerpc ppc64_defconfig) failed like this:

drivers/built-in.o: In function `.sysdev_suspend':
(.text+0x92170): undefined reference to `.check_wakeup_irqs'

check_wakeup_irqs is defined in kernel/irq/pm.c which is only built when
CONFIG_PM_SLEEP is set (which it isn't for this build). The call to
check_wakeup_irqs was added to sysdev_suspend in commit
73263bc09332c5c8de7c60cb76b5b24e2da66b42 ("PM: Rework handling of
interrupts during suspend-resume").

I have dropped the suspend tree temporarily for today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2009-10-13  0:59 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-18  8:30 linux-next: suspend tree build failure Stephen Rothwell
2009-08-18 21:43 ` Rafael J. Wysocki
2009-08-18 22:13   ` Paul Mundt
2009-08-18 22:40     ` Rafael J. Wysocki
2009-08-18 22:47       ` Paul Mundt
2009-08-18 23:57   ` Stephen Rothwell
  -- strict thread matches above, loose matches on Subject: below --
2009-10-12  3:00 Stephen Rothwell
2009-10-12 22:44 ` Rafael J. Wysocki
2009-10-13  0:58   ` Stephen Rothwell
2009-10-08  4:30 Stephen Rothwell
2009-10-06  2:55 Stephen Rothwell
2009-10-06 22:31 ` Rafael J. Wysocki
2009-10-07  4:29   ` Stephen Rothwell
2009-10-07 20:41     ` Rafael J. Wysocki
2009-10-07 23:48       ` Stephen Rothwell
2009-10-05  5:00 Stephen Rothwell
2009-10-05 23:55 ` Rafael J. Wysocki
2009-10-06  2:39   ` Stephen Rothwell
2009-08-17  8:40 Stephen Rothwell
2009-08-17 12:06 ` Rafael J. Wysocki
2009-03-16  9:13 Stephen Rothwell
2009-03-16 22:07 ` Rafael J. Wysocki
2009-03-16 23:09   ` Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).