linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* next-0708: build failure at drivers/pci/pci-acpi.c
@ 2008-07-08 12:18 Alexander Beregalov
  2008-07-08 15:12 ` Rafael J. Wysocki
  0 siblings, 1 reply; 9+ messages in thread
From: Alexander Beregalov @ 2008-07-08 12:18 UTC (permalink / raw)
  To: Rafael J. Wysocki, jbarnes, ak, lenb, linux-acpi, linux-next

Hi Rafael

drivers/pci/pci-acpi.c: In function 'acpi_pci_sleep_wake':
drivers/pci/pci-acpi.c:311: error: implicit declaration of function
'acpi_pm_device_sleep_wake'

drivers/pci/pci-acpi.c:
309-static int acpi_pci_sleep_wake(struct pci_dev *dev, bool enable)
310-{
311:    int error = acpi_pm_device_sleep_wake(&dev->dev, enable);


include/acpi/acpi_bus.h:
381-#ifdef CONFIG_PM_SLEEP
382-int acpi_pm_device_sleep_state(struct device *, int *);
383:int acpi_pm_device_sleep_wake(struct device *, bool);
384-#else /* !CONFIG_PM_SLEEP */
385-static inline int acpi_pm_device_sleep_state(struct device *d, int *p)
386-{
387-    if (p)
388-            *p = ACPI_STATE_D0;
389-    return ACPI_STATE_D3;
390-}
391-#endif /* !CONFIG_PM_SLEEP */

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

* Re: next-0708: build failure at drivers/pci/pci-acpi.c
  2008-07-08 12:18 next-0708: build failure at drivers/pci/pci-acpi.c Alexander Beregalov
@ 2008-07-08 15:12 ` Rafael J. Wysocki
  2008-07-08 16:29   ` Alexander Beregalov
  0 siblings, 1 reply; 9+ messages in thread
From: Rafael J. Wysocki @ 2008-07-08 15:12 UTC (permalink / raw)
  To: Alexander Beregalov
  Cc: jbarnes, ak, lenb, linux-acpi, linux-next,
	Linux Kernel Mailing List, pm list

On Tuesday, 8 of July 2008, Alexander Beregalov wrote:
> Hi Rafael
> 
> drivers/pci/pci-acpi.c: In function 'acpi_pci_sleep_wake':
> drivers/pci/pci-acpi.c:311: error: implicit declaration of function
> 'acpi_pm_device_sleep_wake'

I guess this is a compilation with CONFIG_ACPI=y and CONFIG_PM_SLEEP unset.

In that case the appended patch should help.  Please test and report back (I
can't test linux-next compilation at the moment).

Thanks,
Rafael

---
From: Rafael J. Wysocki <rjw@sisk.pl>

PCI ACPI: Fix compilation of pci-acpi.c

Fix compilation of pci-acpi.c with CONFIG_ACPI set and
CONFIG_PM_SLEEP unset.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
 include/acpi/acpi_bus.h |    4 ++++
 1 file changed, 4 insertions(+)

Index: linux-next/include/acpi/acpi_bus.h
===================================================================
--- linux-next.orig/include/acpi/acpi_bus.h
+++ linux-next/include/acpi/acpi_bus.h
@@ -388,6 +388,10 @@ static inline int acpi_pm_device_sleep_s
 		*p = ACPI_STATE_D0;
 	return ACPI_STATE_D3;
 }
+static inline int acpi_pm_device_sleep_wake(struct device *d, bool b)
+{
+	return -ENOSYS;
+}
 #endif /* !CONFIG_PM_SLEEP */
 
 #endif				/* CONFIG_ACPI */

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

* Re: next-0708: build failure at drivers/pci/pci-acpi.c
  2008-07-08 15:12 ` Rafael J. Wysocki
@ 2008-07-08 16:29   ` Alexander Beregalov
  2008-07-08 16:58     ` Rafael J. Wysocki
  0 siblings, 1 reply; 9+ messages in thread
From: Alexander Beregalov @ 2008-07-08 16:29 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: jbarnes, ak, lenb, linux-acpi, linux-next,
	Linux Kernel Mailing List, pm list

2008/7/8 Rafael J. Wysocki <rjw@sisk.pl>:
> On Tuesday, 8 of July 2008, Alexander Beregalov wrote:
>> Hi Rafael
>>
>> drivers/pci/pci-acpi.c: In function 'acpi_pci_sleep_wake':
>> drivers/pci/pci-acpi.c:311: error: implicit declaration of function
>> 'acpi_pm_device_sleep_wake'
>
> I guess this is a compilation with CONFIG_ACPI=y and CONFIG_PM_SLEEP unset.
Indeed.
>
> In that case the appended patch should help.  Please test and report back (I
> can't test linux-next compilation at the moment).

Compilation test passed and the kernel can boot.

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

* Re: next-0708: build failure at drivers/pci/pci-acpi.c
  2008-07-08 16:29   ` Alexander Beregalov
@ 2008-07-08 16:58     ` Rafael J. Wysocki
  2008-07-08 17:40       ` Jesse Barnes
  0 siblings, 1 reply; 9+ messages in thread
From: Rafael J. Wysocki @ 2008-07-08 16:58 UTC (permalink / raw)
  To: Alexander Beregalov, jbarnes
  Cc: ak, lenb, linux-acpi, linux-next, Linux Kernel Mailing List,
	pm list

On Tuesday, 8 of July 2008, Alexander Beregalov wrote:
> 2008/7/8 Rafael J. Wysocki <rjw@sisk.pl>:
> > On Tuesday, 8 of July 2008, Alexander Beregalov wrote:
> >> Hi Rafael
> >>
> >> drivers/pci/pci-acpi.c: In function 'acpi_pci_sleep_wake':
> >> drivers/pci/pci-acpi.c:311: error: implicit declaration of function
> >> 'acpi_pm_device_sleep_wake'
> >
> > I guess this is a compilation with CONFIG_ACPI=y and CONFIG_PM_SLEEP unset.
> Indeed.
> >
> > In that case the appended patch should help.  Please test and report back (I
> > can't test linux-next compilation at the moment).
> 
> Compilation test passed and the kernel can boot.

Thanks!

Jesse, could you please apply the patch below to the linux-next branch, on top
of the PCI wake-up patchset?

Rafael

---
From: Rafael J. Wysocki <rjw@sisk.pl>

PCI ACPI: Fix compilation of pci-acpi.c

Fix compilation of pci-acpi.c with CONFIG_ACPI set and
CONFIG_PM_SLEEP unset.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Tested-by: Alexander Beregalov <a.beregalov@gmail.com>
---
 include/acpi/acpi_bus.h |    4 ++++
 1 file changed, 4 insertions(+)

Index: linux-next/include/acpi/acpi_bus.h
===================================================================
--- linux-next.orig/include/acpi/acpi_bus.h
+++ linux-next/include/acpi/acpi_bus.h
@@ -388,6 +388,10 @@ static inline int acpi_pm_device_sleep_s
 		*p = ACPI_STATE_D0;
 	return ACPI_STATE_D3;
 }
+static inline int acpi_pm_device_sleep_wake(struct device *d, bool b)
+{
+	return -ENOSYS;
+}
 #endif /* !CONFIG_PM_SLEEP */
 
 #endif				/* CONFIG_ACPI */

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

* Re: next-0708: build failure at drivers/pci/pci-acpi.c
  2008-07-08 16:58     ` Rafael J. Wysocki
@ 2008-07-08 17:40       ` Jesse Barnes
  2008-07-08 20:29         ` Rafael J. Wysocki
  0 siblings, 1 reply; 9+ messages in thread
From: Jesse Barnes @ 2008-07-08 17:40 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Alexander Beregalov, ak, lenb, linux-acpi, linux-next,
	Linux Kernel Mailing List, pm list, David Howells

On Tuesday, July 08, 2008 9:58 am Rafael J. Wysocki wrote:
> On Tuesday, 8 of July 2008, Alexander Beregalov wrote:
> > 2008/7/8 Rafael J. Wysocki <rjw@sisk.pl>:
> > > On Tuesday, 8 of July 2008, Alexander Beregalov wrote:
> > >> Hi Rafael
> > >>
> > >> drivers/pci/pci-acpi.c: In function 'acpi_pci_sleep_wake':
> > >> drivers/pci/pci-acpi.c:311: error: implicit declaration of function
> > >> 'acpi_pm_device_sleep_wake'
> > >
> > > I guess this is a compilation with CONFIG_ACPI=y and CONFIG_PM_SLEEP
> > > unset.
> >
> > Indeed.
> >
> > > In that case the appended patch should help.  Please test and report
> > > back (I can't test linux-next compilation at the moment).
> >
> > Compilation test passed and the kernel can boot.
>
> Thanks!
>
> Jesse, could you please apply the patch below to the linux-next branch, on
> top of the PCI wake-up patchset?
>
> Rafael

David sent me one just like this at 7am this morning, just applied and pushed 
(along with Alexander's tested-by).

Thanks,
Jesse

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

* Re: next-0708: build failure at drivers/pci/pci-acpi.c
  2008-07-08 17:40       ` Jesse Barnes
@ 2008-07-08 20:29         ` Rafael J. Wysocki
  2008-07-09 23:21           ` Jesse Barnes
  0 siblings, 1 reply; 9+ messages in thread
From: Rafael J. Wysocki @ 2008-07-08 20:29 UTC (permalink / raw)
  To: Jesse Barnes
  Cc: Alexander Beregalov, ak, lenb, linux-acpi, linux-next,
	Linux Kernel Mailing List, pm list, David Howells

On Tuesday, 8 of July 2008, Jesse Barnes wrote:
> On Tuesday, July 08, 2008 9:58 am Rafael J. Wysocki wrote:
> > On Tuesday, 8 of July 2008, Alexander Beregalov wrote:
> > > 2008/7/8 Rafael J. Wysocki <rjw@sisk.pl>:
> > > > On Tuesday, 8 of July 2008, Alexander Beregalov wrote:
> > > >> Hi Rafael
> > > >>
> > > >> drivers/pci/pci-acpi.c: In function 'acpi_pci_sleep_wake':
> > > >> drivers/pci/pci-acpi.c:311: error: implicit declaration of function
> > > >> 'acpi_pm_device_sleep_wake'
> > > >
> > > > I guess this is a compilation with CONFIG_ACPI=y and CONFIG_PM_SLEEP
> > > > unset.
> > >
> > > Indeed.
> > >
> > > > In that case the appended patch should help.  Please test and report
> > > > back (I can't test linux-next compilation at the moment).
> > >
> > > Compilation test passed and the kernel can boot.
> >
> > Thanks!
> >
> > Jesse, could you please apply the patch below to the linux-next branch, on
> > top of the PCI wake-up patchset?
> >
> > Rafael
> 
> David sent me one just like this at 7am this morning, just applied and pushed 
> (along with Alexander's tested-by).

OK, thanks.

Would you like me to send the Stephen's fix for compilation on ppc64 (CONFIG_PM
unset)?

Rafael

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

* Re: next-0708: build failure at drivers/pci/pci-acpi.c
  2008-07-08 20:29         ` Rafael J. Wysocki
@ 2008-07-09 23:21           ` Jesse Barnes
  2008-07-10  0:16             ` Rafael J. Wysocki
  0 siblings, 1 reply; 9+ messages in thread
From: Jesse Barnes @ 2008-07-09 23:21 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Alexander Beregalov, ak, lenb, linux-acpi, linux-next,
	Linux Kernel Mailing List, pm list, David Howells

On Tuesday, July 8, 2008 1:29:31 pm Rafael J. Wysocki wrote:
> On Tuesday, 8 of July 2008, Jesse Barnes wrote:
> > David sent me one just like this at 7am this morning, just applied and
> > pushed (along with Alexander's tested-by).
>
> OK, thanks.
>
> Would you like me to send the Stephen's fix for compilation on ppc64
> (CONFIG_PM unset)?

Sure, unless it's already in the ppc tree...

Thanks,
Jesse

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

* Re: next-0708: build failure at drivers/pci/pci-acpi.c
  2008-07-09 23:21           ` Jesse Barnes
@ 2008-07-10  0:16             ` Rafael J. Wysocki
  2008-07-14 21:30               ` Jesse Barnes
  0 siblings, 1 reply; 9+ messages in thread
From: Rafael J. Wysocki @ 2008-07-10  0:16 UTC (permalink / raw)
  To: Jesse Barnes
  Cc: Alexander Beregalov, ak, lenb, linux-acpi, linux-next,
	Linux Kernel Mailing List, pm list, David Howells,
	Stephen Rothwell

On Thursday, 10 of July 2008, Jesse Barnes wrote:
> On Tuesday, July 8, 2008 1:29:31 pm Rafael J. Wysocki wrote:
> > On Tuesday, 8 of July 2008, Jesse Barnes wrote:
> > > David sent me one just like this at 7am this morning, just applied and
> > > pushed (along with Alexander's tested-by).
> >
> > OK, thanks.
> >
> > Would you like me to send the Stephen's fix for compilation on ppc64
> > (CONFIG_PM unset)?
> 
> Sure, unless it's already in the ppc tree...

It looks like Stephen had to apply it today too, so I guess it isn't.

Thanks,
Rafael

---
From: Stephen Rothwell <sfr@canb.auug.org.au>
Subject: [PATCH] pci: include linux/pm_wakeup.h for device_set_wakeup_capable

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
 drivers/pci/pci.c         |    1 +
 include/linux/pm_wakeup.h |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index e632a58..3d92b71 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -17,6 +17,7 @@
 #include <linux/string.h>
 #include <linux/log2.h>
 #include <linux/pci-aspm.h>
+#include <linux/pm_wakeup.h>
 #include <asm/dma.h>	/* isa_dma_bridge_buggy */
 #include "pci.h"
 
diff --git a/include/linux/pm_wakeup.h b/include/linux/pm_wakeup.h
index 3af0c8d..0aae777 100644
--- a/include/linux/pm_wakeup.h
+++ b/include/linux/pm_wakeup.h
@@ -63,6 +63,8 @@ static inline void device_init_wakeup(struct device *dev, int val)
 	dev->power.can_wakeup = !!val;
 }
 
+static inline void device_set_wakeup_capable(struct device *dev, int val) { }
+
 static inline int device_can_wakeup(struct device *dev)
 {
 	return dev->power.can_wakeup;
-- 

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

* Re: next-0708: build failure at drivers/pci/pci-acpi.c
  2008-07-10  0:16             ` Rafael J. Wysocki
@ 2008-07-14 21:30               ` Jesse Barnes
  0 siblings, 0 replies; 9+ messages in thread
From: Jesse Barnes @ 2008-07-14 21:30 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Alexander Beregalov, ak, lenb, linux-acpi, linux-next,
	Linux Kernel Mailing List, pm list, David Howells,
	Stephen Rothwell

On Wednesday, July 09, 2008 5:16 pm Rafael J. Wysocki wrote:
> On Thursday, 10 of July 2008, Jesse Barnes wrote:
> > On Tuesday, July 8, 2008 1:29:31 pm Rafael J. Wysocki wrote:
> > > On Tuesday, 8 of July 2008, Jesse Barnes wrote:
> > > > David sent me one just like this at 7am this morning, just applied
> > > > and pushed (along with Alexander's tested-by).
> > >
> > > OK, thanks.
> > >
> > > Would you like me to send the Stephen's fix for compilation on ppc64
> > > (CONFIG_PM unset)?
> >
> > Sure, unless it's already in the ppc tree...
>
> It looks like Stephen had to apply it today too, so I guess it isn't.
>
> Thanks,
> Rafael
>
> ---
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Subject: [PATCH] pci: include linux/pm_wakeup.h for
> device_set_wakeup_capable
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>

Applied to my linux-next branch, thanks.

Jesse

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

end of thread, other threads:[~2008-07-14 21:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-08 12:18 next-0708: build failure at drivers/pci/pci-acpi.c Alexander Beregalov
2008-07-08 15:12 ` Rafael J. Wysocki
2008-07-08 16:29   ` Alexander Beregalov
2008-07-08 16:58     ` Rafael J. Wysocki
2008-07-08 17:40       ` Jesse Barnes
2008-07-08 20:29         ` Rafael J. Wysocki
2008-07-09 23:21           ` Jesse Barnes
2008-07-10  0:16             ` Rafael J. Wysocki
2008-07-14 21:30               ` Jesse Barnes

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).