[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1359935343-30558-1-git-send-email-festevam@gmail.com>
Date: Sun, 3 Feb 2013 21:49:03 -0200
From: Fabio Estevam <festevam@...il.com>
To: broonie@...nsource.wolfsonmicro.com
Cc: linux-kernel@...r.kernel.org,
Fabio Estevam <fabio.estevam@...escale.com>
Subject: [PATCH] regmap: Include <linux/sched.h> header
From: Fabio Estevam <fabio.estevam@...escale.com>
commit 0e8c0234b2 (regmap: Add asynchronous I/O support) introduced the
following build error:
drivers/base/regmap/regmap.c:1656:32: error: 'TASK_NORMAL' undeclared (first use in this function)
drivers/base/regmap/regmap.c:1688:271: error: 'TASK_UNINTERRUPTIBLE' undeclared (first use in this function)
drivers/base/regmap/regmap.c:1688:2: error: implicit declaration of function 'schedule' [-Werror=implicit-function-declaration]
Include <linux/sched.h> header to fix it.
Signed-off-by: Fabio Estevam <fabio.estevam@...escale.com>
---
drivers/base/regmap/regmap.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index bee8560..ebd1f22 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -16,6 +16,7 @@
#include <linux/mutex.h>
#include <linux/err.h>
#include <linux/rbtree.h>
+#include <linux/sched.h>
#define CREATE_TRACE_POINTS
#include <trace/events/regmap.h>
--
1.7.9.5
--
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