fs: annotate ->poll() instances
[linux-block.git] / fs / notify / inotify / inotify_user.c
index d3c20e0bb046d21c33c0b0a9e712c571f49b690c..5c29bf16814f48633d57a5537c9ba9134c09e4df 100644 (file)
@@ -107,10 +107,10 @@ static inline u32 inotify_mask_to_arg(__u32 mask)
 }
 
 /* intofiy userspace file descriptor functions */
-static unsigned int inotify_poll(struct file *file, poll_table *wait)
+static __poll_t inotify_poll(struct file *file, poll_table *wait)
 {
        struct fsnotify_group *group = file->private_data;
-       int ret = 0;
+       __poll_t ret = 0;
 
        poll_wait(file, &group->notification_waitq, wait);
        spin_lock(&group->notification_lock);