Skip to contentSkip to conversation

PM / Domains: add missing include to linux/pm.h

PATCH New Arnd Bergmann 1 participant 1 message Sep 29, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM / Domains: add missing include to linux/pm.h

The newly added attach/detach API introduces a use of -ENODEV in linux/pm.h, which can cause build errors:

In file included from arch/arm/mach-shmobile/cpuidle.c:11:0:
include/linux/pm.h: In function 'dev_pm_domain_attach':
include/linux/pm.h:631:10: error: 'ENODEV' undeclared (first use in this function)

This is easily solved by adding an include of linux/errno.h

Fixes 46420dd73b80 ("PM / Domains: Add APIs to attach/detach a PM domain for a device")

---
This is from last thursday, please just ignore if someone else has the same fix.

include/linux/pm.h +1 -0
index c4cbf485a5d6..56d1a7df4321 100644
@@ -21,6 +21,7 @@
 #ifndef _LINUX_PM_H
 #define _LINUX_PM_H
 
+#include <linux/errno.h>
 #include <linux/list.h>
 #include <linux/workqueue.h>
 #include <linux/spinlock.h>