diff mbox series

media: Use wait_queue_head_t for media_request

Message ID 20181109210605.12848-1-jasmin@anw.at (mailing list archive)
State New, archived
Headers show
Series media: Use wait_queue_head_t for media_request | expand

Commit Message

Jasmin J. Nov. 9, 2018, 9:06 p.m. UTC
From: Jasmin Jessich <jasmin@anw.at>

The portable type for a wait queue is wait_queue_head_t.

Signed-off-by: Jasmin Jessich <jasmin@anw.at>
---
 include/media/media-request.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jasmin J. Nov. 9, 2018, 9:40 p.m. UTC | #1
Hi!

Temporary add this patch to media-build until it is integrated in mainline.
This should fix the build errors for Kernels older than 4.12.

BR,
   Jasmin
diff mbox series

Patch

diff --git a/include/media/media-request.h b/include/media/media-request.h
index 0ce75c35131f..bd36d7431698 100644
--- a/include/media/media-request.h
+++ b/include/media/media-request.h
@@ -68,7 +68,7 @@  struct media_request {
 	unsigned int access_count;
 	struct list_head objects;
 	unsigned int num_incomplete_objects;
-	struct wait_queue_head poll_wait;
+	wait_queue_head_t poll_wait;
 	spinlock_t lock;
 };