lkml.org 
[lkml]   [2013]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] regmap: Include <linux/sched.h> header
Date
From: Fabio Estevam <fabio.estevam@freescale.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@freescale.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


\
 
 \ /
  Last update: 2013-02-04 01:21    [W:0.065 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site