ACPI / PM: Fix build problem when CONFIG_ACPI or CONFIG_PM is not set
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 15 Nov 2012 12:15:37 +0000 (13:15 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 15 Nov 2012 12:15:37 +0000 (13:15 +0100)
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>
include/linux/acpi.h

index 0676b6ac57fa35232162e24c3ed9700163df0ec4..5fdd87271518a117de715ce17b7adc9b8a4b83d7 100644 (file)
@@ -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