diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-03 06:39:46 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-11-28 11:06:58 -0500 |
commit | afc9a42b7464f76e1388cad87d8543c69f6f74ed (patch) | |
tree | abc3abe50053edd3dcf0b04c2d2a63640ee89f6b /drivers/gpu/drm | |
parent | c23e0cb81e4021b9712b1093d54713991fd9b7c2 (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.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_perf.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | 2 |
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 | */ |
562 | unsigned 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 | */ |
2334 | static unsigned int i915_perf_poll_locked(struct drm_i915_private *dev_priv, | 2334 | static __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 | */ |
2368 | static unsigned int i915_perf_poll(struct file *file, poll_table *wait) | 2368 | static __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); |
714 | extern int vmw_present_readback_ioctl(struct drm_device *dev, void *data, | 714 | extern int vmw_present_readback_ioctl(struct drm_device *dev, void *data, |
715 | struct drm_file *file_priv); | 715 | struct drm_file *file_priv); |
716 | extern unsigned int vmw_fops_poll(struct file *filp, | 716 | extern __poll_t vmw_fops_poll(struct file *filp, |
717 | struct poll_table_struct *wait); | 717 | struct poll_table_struct *wait); |
718 | extern ssize_t vmw_fops_read(struct file *filp, char __user *buffer, | 718 | extern 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 | */ |
415 | unsigned 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 = |