linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PM / Domains: add missing include to linux/pm.h
@ 2014-09-29 12:18 Arnd Bergmann
  0 siblings, 0 replies; only message in thread
From: Arnd Bergmann @ 2014-09-29 12:18 UTC (permalink / raw)
  To: linux-arm-kernel

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

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
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.

diff --git a/include/linux/pm.h b/include/linux/pm.h
index c4cbf485a5d6..56d1a7df4321 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -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>

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-29 12:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-29 12:18 [PATCH] PM / Domains: add missing include to linux/pm.h Arnd Bergmann

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