Commit e6c8adca authored by Al Viro's avatar Al Viro
Browse files

anntotate the places where ->poll() return values go



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a3f8683b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -809,7 +809,7 @@ static unsigned int soc_camera_poll(struct file *file, poll_table *pt)
{
	struct soc_camera_device *icd = file->private_data;
	struct soc_camera_host *ici = to_soc_camera_host(icd->parent);
	unsigned res = POLLERR;
	__poll_t res = POLLERR;

	if (icd->streamer != file)
		return POLLERR;
+1 −1
Original line number Diff line number Diff line
@@ -334,7 +334,7 @@ static ssize_t v4l2_write(struct file *filp, const char __user *buf,
static unsigned int v4l2_poll(struct file *filp, struct poll_table_struct *poll)
{
	struct video_device *vdev = video_devdata(filp);
	unsigned int res = POLLERR | POLLHUP;
	__poll_t res = POLLERR | POLLHUP;

	if (!vdev->fops->poll)
		return DEFAULT_POLLMASK;
+1 −1
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ static void serial2002_tty_read_poll_wait(struct file *f, int timeout)
	poll_initwait(&table);
	while (1) {
		long elapsed;
		int mask;
		__poll_t mask;

		mask = f->f_op->poll(f, &table.pt);
		if (mask & (POLLRDNORM | POLLRDBAND | POLLIN |
+1 −1
Original line number Diff line number Diff line
@@ -2059,7 +2059,7 @@ static unsigned int tty_poll(struct file *filp, poll_table *wait)
{
	struct tty_struct *tty = file_tty(filp);
	struct tty_ldisc *ld;
	int ret = 0;
	__poll_t ret = 0;

	if (tty_paranoia_check(tty, file_inode(filp), "tty_poll"))
		return 0;
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ int vfio_virqfd_enable(void *opaque,
	struct eventfd_ctx *ctx;
	struct virqfd *virqfd;
	int ret = 0;
	unsigned int events;
	__poll_t events;

	virqfd = kzalloc(sizeof(*virqfd), GFP_KERNEL);
	if (!virqfd)
Loading