All of lore.kernel.org
 help / color / mirror / Atom feed
* [pm:acpi-dev-pm 9/10] include/linux/acpi.h:463:68: error: 'ENODEV' undeclared
@ 2012-11-15  1:45 kbuild test robot
  2012-11-15 23:12 ` [PATCH] ACPI / PM: Fix build problem when CONFIG_ACPI or CONFIG_PM is not set Rafael J. Wysocki
  0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2012-11-15  1:45 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-pm

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git acpi-dev-pm
head:   99926a8cd36b6088448fec41aed4a3b5b05b3679
commit: e5cc8ef31267317f3e177415c84e3f3602e5bfc9 [9/10] ACPI / PM: Provide ACPI PM callback routines for subsystems
config: make ARCH=arm tegra_defconfig

All error/warnings:

In file included from drivers/pci/irq.c:7:0:
include/linux/acpi.h: In function 'acpi_dev_pm_attach':
include/linux/acpi.h:463:68: error: 'ENODEV' undeclared (first use in this function)
include/linux/acpi.h:463:68: note: each undeclared identifier is reported only once for each function it appears in

vim +463 +/ENODEV include/linux/acpi.h

e5cc8ef3 Rafael J. Wysocki 2012-11-02  457  #endif
e5cc8ef3 Rafael J. Wysocki 2012-11-02  458  
e5cc8ef3 Rafael J. Wysocki 2012-11-02  459  #if defined(CONFIG_ACPI) && defined(CONFIG_PM)
e5cc8ef3 Rafael J. Wysocki 2012-11-02  460  int acpi_dev_pm_attach(struct device *dev);
e5cc8ef3 Rafael J. Wysocki 2012-11-02  461  int acpi_dev_pm_detach(struct device *dev);
e5cc8ef3 Rafael J. Wysocki 2012-11-02  462  #else
e5cc8ef3 Rafael J. Wysocki 2012-11-02 @463  static inline int acpi_dev_pm_attach(struct device *dev) { return -ENODEV; }
e5cc8ef3 Rafael J. Wysocki 2012-11-02  464  static inline void acpi_dev_pm_detach(struct device *dev) {}
e5cc8ef3 Rafael J. Wysocki 2012-11-02  465  #endif
e5cc8ef3 Rafael J. Wysocki 2012-11-02  466  

---
0-DAY kernel build testing backend         Open Source Technology Center
Fengguang Wu, Yuanhan Liu                              Intel Corporation

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

* [PATCH] ACPI / PM: Fix build problem when CONFIG_ACPI or CONFIG_PM is not set
  2012-11-15  1:45 [pm:acpi-dev-pm 9/10] include/linux/acpi.h:463:68: error: 'ENODEV' undeclared kbuild test robot
@ 2012-11-15 23:12 ` Rafael J. Wysocki
  0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2012-11-15 23:12 UTC (permalink / raw)
  To: kbuild test robot; +Cc: Rafael J. Wysocki, linux-pm

On Thursday, November 15, 2012 09:45:43 AM kbuild test robot wrote:
> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git acpi-dev-pm
> head:   99926a8cd36b6088448fec41aed4a3b5b05b3679
> commit: e5cc8ef31267317f3e177415c84e3f3602e5bfc9 [9/10] ACPI / PM: Provide ACPI PM callback routines for subsystems
> config: make ARCH=arm tegra_defconfig
> 
> All error/warnings:
> 
> In file included from drivers/pci/irq.c:7:0:
> include/linux/acpi.h: In function 'acpi_dev_pm_attach':
> include/linux/acpi.h:463:68: error: 'ENODEV' undeclared (first use in this function)
> include/linux/acpi.h:463:68: note: each undeclared identifier is reported only once for each function it appears in
> 
> vim +463 +/ENODEV include/linux/acpi.h
> 
> e5cc8ef3 Rafael J. Wysocki 2012-11-02  457  #endif
> e5cc8ef3 Rafael J. Wysocki 2012-11-02  458  
> e5cc8ef3 Rafael J. Wysocki 2012-11-02  459  #if defined(CONFIG_ACPI) && defined(CONFIG_PM)
> e5cc8ef3 Rafael J. Wysocki 2012-11-02  460  int acpi_dev_pm_attach(struct device *dev);
> e5cc8ef3 Rafael J. Wysocki 2012-11-02  461  int acpi_dev_pm_detach(struct device *dev);
> e5cc8ef3 Rafael J. Wysocki 2012-11-02  462  #else
> e5cc8ef3 Rafael J. Wysocki 2012-11-02 @463  static inline int acpi_dev_pm_attach(struct device *dev) { return -ENODEV; }
> e5cc8ef3 Rafael J. Wysocki 2012-11-02  464  static inline void acpi_dev_pm_detach(struct device *dev) {}
> e5cc8ef3 Rafael J. Wysocki 2012-11-02  465  #endif
> e5cc8ef3 Rafael J. Wysocki 2012-11-02  466  
> 
> ---
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Subject: ACPI / PM: Fix build problem when CONFIG_ACPI or CONFIG_PM is not set

Commit e5cc8ef (ACPI / PM: Provide ACPI PM callback routines for
subsystems) introduced a build problem occuring if CONFIG_ACPI is
unset or CONFIG_PM is unset and errno.h is not included before
acpi.h, because in that case ENODEV used in acpi.h is undefined.

Fix the issue by making acpi.h include errno.h.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---

On top of the current linux-pm.git/acpi-dev-pm.

---
 include/linux/acpi.h |    1 +
 1 file changed, 1 insertion(+)

Index: linux-pm/include/linux/acpi.h
===================================================================
--- linux-pm.orig/include/linux/acpi.h
+++ linux-pm/include/linux/acpi.h
@@ -25,6 +25,7 @@
 #ifndef _LINUX_ACPI_H
 #define _LINUX_ACPI_H
 
+#include <linux/errno.h>
 #include <linux/ioport.h>	/* for struct resource */
 
 #ifdef	CONFIG_ACPI



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

* [PATCH] ACPI / PM: Fix build problem when CONFIG_ACPI or CONFIG_PM is not set
@ 2012-11-15 23:18 Rafael J. Wysocki
  0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2012-11-15 23:18 UTC (permalink / raw)
  To: ACPI Devel Maling List

From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

Commit e5cc8ef (ACPI / PM: Provide ACPI PM callback routines for
subsystems) introduced a build problem occuring if CONFIG_ACPI is
unset or CONFIG_PM is unset and errno.h is not included before
acpi.h, because in that case ENODEV used in acpi.h is undefined.

Fix the issue by making acpi.h include errno.h.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---

On top of the current linux-pm.git/acpi-dev-pm.

---
 include/linux/acpi.h |    1 +
 1 file changed, 1 insertion(+)

Index: linux-pm/include/linux/acpi.h
===================================================================
--- linux-pm.orig/include/linux/acpi.h
+++ linux-pm/include/linux/acpi.h
@@ -25,6 +25,7 @@
 #ifndef _LINUX_ACPI_H
 #define _LINUX_ACPI_H
 
+#include <linux/errno.h>
 #include <linux/ioport.h>	/* for struct resource */
 
 #ifdef	CONFIG_ACPI



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

end of thread, other threads:[~2012-11-15 23:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-15  1:45 [pm:acpi-dev-pm 9/10] include/linux/acpi.h:463:68: error: 'ENODEV' undeclared kbuild test robot
2012-11-15 23:12 ` [PATCH] ACPI / PM: Fix build problem when CONFIG_ACPI or CONFIG_PM is not set Rafael J. Wysocki
  -- strict thread matches above, loose matches on Subject: below --
2012-11-15 23:18 Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.