aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-03-23 08:30:53 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-03-23 08:37:45 +0100
commit70188fdddcfedda190f1118529888cd3dc2581d6 (patch)
treef65a59ac2f6dfaa8dc8f01e5aa8f4f6fbb59dd2b
parent948f2d3d62b786f491244f654d10b20f1615b946 (diff)
Add v4.16_poll_requested_events.patch
Fixes warning due to prototype change in this function in 4.16. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--backports/backports.txt3
-rw-r--r--backports/v4.16_poll_requested_events.patch13
2 files changed, 16 insertions, 0 deletions
diff --git a/backports/backports.txt b/backports/backports.txt
index d296b50..667764a 100644
--- a/backports/backports.txt
+++ b/backports/backports.txt
@@ -78,6 +78,9 @@ add v4.18_vb2_map_atomic.patch
[4.17.1023]
add v4.17_i2c_check_num_msgs.patch
+[4.16.1023]
+add v4.16_poll_requested_events.patch
+
[4.15.1023]
add v4.15_pmdown_time.patch
add v4.15_async.patch
diff --git a/backports/v4.16_poll_requested_events.patch b/backports/v4.16_poll_requested_events.patch
new file mode 100644
index 0000000..77cbd81
--- /dev/null
+++ b/backports/v4.16_poll_requested_events.patch
@@ -0,0 +1,13 @@
+diff --git a/drivers/media/v4l2-core/v4l2-dev.c b/drivers/media/v4l2-core/v4l2-dev.c
+index 7d0edf3530be..fa846dd0434c 100644
+--- a/drivers/media/v4l2-core/v4l2-dev.c
++++ b/drivers/media/v4l2-core/v4l2-dev.c
+@@ -352,7 +352,7 @@ static __poll_t v4l2_poll(struct file *filp, struct poll_table_struct *poll)
+ if (vdev->dev_debug & V4L2_DEV_DEBUG_POLL)
+ dprintk("%s: poll: %08x %08x\n",
+ video_device_node_name(vdev), res,
+- poll_requested_events(poll));
++ (u32)poll_requested_events(poll));
+ return res;
+ }
+

Privacy Policy