login
Header Space

 
 

[PATCH] Fix ENOSYS undeclared errors from linux/pm.h

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: LKML <linux-kernel@...>
Date: Monday, July 30, 2007 - 1:02 pm

With CONFIG_SUSPEND=n I get build errors from at least a couple of
files because of the use of ENOSYS in the stub for pm_suspend().
Should those .c files be forced to include errno.h?  Or should we
have the include in pm.h?  Assuming the latter ...

Signed-off-by: Tony Luck <tony.luck@intel.com>

---

diff --git a/include/linux/pm.h b/include/linux/pm.h
index e52f6f8..a90c020 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -23,6 +23,7 @@
 
 #ifdef __KERNEL__
 
+#include <linux/errno.h>
 #include <linux/list.h>
 #include <asm/atomic.h>
 
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix ENOSYS undeclared errors from linux/pm.h, Luck, Tony, (Mon Jul 30, 1:02 pm)
speck-geostationary