Merge tag 'apparmor-pr-2018-04-10' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / security / apparmor / apparmorfs.c
index f4308683c0af3911e9e193eae54f65b6cc87429d..949dd8a48164a3efe2618356ddffc3a7c96d79cc 100644 (file)
@@ -569,16 +569,16 @@ static int ns_revision_open(struct inode *inode, struct file *file)
        return 0;
 }
 
-static unsigned int ns_revision_poll(struct file *file, poll_table *pt)
+static __poll_t ns_revision_poll(struct file *file, poll_table *pt)
 {
        struct aa_revision *rev = file->private_data;
-       unsigned int mask = 0;
+       __poll_t mask = 0;
 
        if (rev) {
                mutex_lock_nested(&rev->ns->lock, rev->ns->level);
                poll_wait(file, &rev->ns->wait, pt);
                if (rev->last_read < rev->ns->revision)
-                       mask |= POLLIN | POLLRDNORM;
+                       mask |= EPOLLIN | EPOLLRDNORM;
                mutex_unlock(&rev->ns->lock);
        }