[<prev] [next>] [day] [month] [year] [list]
Message-ID: <617E1C2C70743745A92448908E030B2A0209C217@scsmsx411.amr.corp.intel.com>
Date: Mon, 30 Jul 2007 10:02:47 -0700
From: "Luck, Tony" <tony.luck@...el.com>
To: "LKML" <linux-kernel@...r.kernel.org>
Subject: [PATCH] Fix ENOSYS undeclared errors from linux/pm.h
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@...el.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>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists