[ 29/40] media: v4l2: added missing mutex.h include to v4l2-ctrls.h

From: Greg Kroah-Hartman
Date: Tue Sep 24 2013 - 21:25:21 EST


3.4-stable review patch. If anyone has any objections, please let me know.

------------------

From: Andrzej Hajda <a.hajda@xxxxxxxxxxx>

commit a19dec6ea94c036af68c31930c1c92681f55af41 upstream.

This patch fixes following error:
include/media/v4l2-ctrls.h:193:15: error: field â_lockâ has incomplete type
include/media/v4l2-ctrls.h: In function âv4l2_ctrl_lockâ:
include/media/v4l2-ctrls.h:570:2: error: implicit declaration of
function âmutex_lockâ [-Werror=implicit-function-declaration]
include/media/v4l2-ctrls.h: In function âv4l2_ctrl_unlockâ:
include/media/v4l2-ctrls.h:579:2: error: implicit declaration of
function âmutex_unlockâ [-Werror=implicit-function-declaration]

Signed-off-by: Andrzej Hajda <a.hajda@xxxxxxxxxxx>
Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
Signed-off-by: Hans Verkuil <hans.verkuil@xxxxxxxxx>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@xxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
include/media/v4l2-ctrls.h | 1 +
1 file changed, 1 insertion(+)

--- a/include/media/v4l2-ctrls.h
+++ b/include/media/v4l2-ctrls.h
@@ -22,6 +22,7 @@
#define _V4L2_CTRLS_H

#include <linux/list.h>
+#include <linux/mutex.h>
#include <linux/videodev2.h>

/* forward references */


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/