aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-07-03 06:39:46 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-11-28 11:06:58 -0500
commitafc9a42b7464f76e1388cad87d8543c69f6f74ed (patch)
treeabc3abe50053edd3dcf0b04c2d2a63640ee89f6b /drivers/gpu/drm
parentc23e0cb81e4021b9712b1093d54713991fd9b7c2 (diff)
the rest of drivers/*: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/drm_file.c4
-rw-r--r--drivers/gpu/drm/i915/i915_perf.c8
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_drv.h2
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c2
4 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/drm/drm_file.c b/drivers/gpu/drm/drm_file.c
index b3c6e997ccdb..9a17bd3639d1 100644
--- a/drivers/gpu/drm/drm_file.c
+++ b/drivers/gpu/drm/drm_file.c
@@ -559,10 +559,10 @@ EXPORT_SYMBOL(drm_read);
559 * 559 *
560 * Mask of POLL flags indicating the current status of the file. 560 * Mask of POLL flags indicating the current status of the file.
561 */ 561 */
562unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait) 562__poll_t drm_poll(struct file *filp, struct poll_table_struct *wait)
563{ 563{
564 struct drm_file *file_priv = filp->private_data; 564 struct drm_file *file_priv = filp->private_data;
565 unsigned int mask = 0; 565 __poll_t mask = 0;
566 566
567 poll_wait(filp, &file_priv->event_wait, wait); 567 poll_wait(filp, &file_priv->event_wait, wait);
568 568
diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
index 59ee808f8fd9..d453756ca128 100644
--- a/drivers/gpu/drm/i915/i915_perf.c
+++ b/drivers/gpu/drm/i915/i915_perf.c
@@ -2331,12 +2331,12 @@ static enum hrtimer_restart oa_poll_check_timer_cb(struct hrtimer *hrtimer)
2331 * 2331 *
2332 * Returns: any poll events that are ready without sleeping 2332 * Returns: any poll events that are ready without sleeping
2333 */ 2333 */
2334static unsigned int i915_perf_poll_locked(struct drm_i915_private *dev_priv, 2334static __poll_t i915_perf_poll_locked(struct drm_i915_private *dev_priv,
2335 struct i915_perf_stream *stream, 2335 struct i915_perf_stream *stream,
2336 struct file *file, 2336 struct file *file,
2337 poll_table *wait) 2337 poll_table *wait)
2338{ 2338{
2339 unsigned int events = 0; 2339 __poll_t events = 0;
2340 2340
2341 stream->ops->poll_wait(stream, file, wait); 2341 stream->ops->poll_wait(stream, file, wait);
2342 2342
@@ -2365,11 +2365,11 @@ static unsigned int i915_perf_poll_locked(struct drm_i915_private *dev_priv,
2365 * 2365 *
2366 * Returns: any poll events that are ready without sleeping 2366 * Returns: any poll events that are ready without sleeping
2367 */ 2367 */
2368static unsigned int i915_perf_poll(struct file *file, poll_table *wait) 2368static __poll_t i915_perf_poll(struct file *file, poll_table *wait)
2369{ 2369{
2370 struct i915_perf_stream *stream = file->private_data; 2370 struct i915_perf_stream *stream = file->private_data;
2371 struct drm_i915_private *dev_priv = stream->dev_priv; 2371 struct drm_i915_private *dev_priv = stream->dev_priv;
2372 int ret; 2372 __poll_t ret;
2373 2373
2374 mutex_lock(&dev_priv->perf.lock); 2374 mutex_lock(&dev_priv->perf.lock);
2375 ret = i915_perf_poll_locked(dev_priv, stream, file, wait); 2375 ret = i915_perf_poll_locked(dev_priv, stream, file, wait);
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
index 7e5f30e234b1..d08753e8fd94 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
@@ -713,7 +713,7 @@ extern int vmw_present_ioctl(struct drm_device *dev, void *data,
713 struct drm_file *file_priv); 713 struct drm_file *file_priv);
714extern int vmw_present_readback_ioctl(struct drm_device *dev, void *data, 714extern int vmw_present_readback_ioctl(struct drm_device *dev, void *data,
715 struct drm_file *file_priv); 715 struct drm_file *file_priv);
716extern unsigned int vmw_fops_poll(struct file *filp, 716extern __poll_t vmw_fops_poll(struct file *filp,
717 struct poll_table_struct *wait); 717 struct poll_table_struct *wait);
718extern ssize_t vmw_fops_read(struct file *filp, char __user *buffer, 718extern ssize_t vmw_fops_read(struct file *filp, char __user *buffer,
719 size_t count, loff_t *offset); 719 size_t count, loff_t *offset);
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
index 01be355525e4..67f844678ac8 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
@@ -412,7 +412,7 @@ out_clips:
412 * Wrapper around the drm_poll function that makes sure the device is 412 * Wrapper around the drm_poll function that makes sure the device is
413 * processing the fifo if drm_poll decides to wait. 413 * processing the fifo if drm_poll decides to wait.
414 */ 414 */
415unsigned int vmw_fops_poll(struct file *filp, struct poll_table_struct *wait) 415__poll_t vmw_fops_poll(struct file *filp, struct poll_table_struct *wait)
416{ 416{
417 struct drm_file *file_priv = filp->private_data; 417 struct drm_file *file_priv = filp->private_data;
418 struct vmw_private *dev_priv = 418 struct vmw_private *dev_priv =