summaryrefslogtreecommitdiffstats
path: root/drivers/rpmsg
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-02-11 17:34:03 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2018-02-11 17:34:03 -0500
commita9a08845e9acbd224e4ee466f5c1275ed50054e8 (patch)
tree415d6e6a82e001c65e6b161539411f54ba5fe8ce /drivers/rpmsg
parentee5daa1361fceb6f482c005bcc9ba8d01b92ea5c (diff)
vfs: do bulk POLL* -> EPOLL* replacement
This is the mindless scripted replacement of kernel use of POLL* variables as described by Al, done by this script: for V in IN OUT PRI ERR RDNORM RDBAND WRNORM WRBAND HUP RDHUP NVAL MSG; do L=`git grep -l -w POLL$V | grep -v '^t' | grep -v /um/ | grep -v '^sa' | grep -v '/poll.h$'|grep -v '^D'` for f in $L; do sed -i "-es/^\([^\"]*\)\(\<POLL$V\>\)/\\1E\\2/" $f; done done with de-mangling cleanups yet to come. NOTE! On almost all architectures, the EPOLL* constants have the same values as the POLL* constants do. But they keyword here is "almost". For various bad reasons they aren't the same, and epoll() doesn't actually work quite correctly in some cases due to this on Sparc et al. The next patch from Al will sort out the final differences, and we should be all done. Scripted-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rpmsg')
-rw-r--r--drivers/rpmsg/qcom_smd.c2
-rw-r--r--drivers/rpmsg/rpmsg_char.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c
index 8428eba8cb73..92d0c6a7a837 100644
--- a/drivers/rpmsg/qcom_smd.c
+++ b/drivers/rpmsg/qcom_smd.c
@@ -967,7 +967,7 @@ static __poll_t qcom_smd_poll(struct rpmsg_endpoint *ept,
967 poll_wait(filp, &channel->fblockread_event, wait); 967 poll_wait(filp, &channel->fblockread_event, wait);
968 968
969 if (qcom_smd_get_tx_avail(channel) > 20) 969 if (qcom_smd_get_tx_avail(channel) > 20)
970 mask |= POLLOUT | POLLWRNORM; 970 mask |= EPOLLOUT | EPOLLWRNORM;
971 971
972 return mask; 972 return mask;
973} 973}
diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c
index e622fcda30fa..64b6de9763ee 100644
--- a/drivers/rpmsg/rpmsg_char.c
+++ b/drivers/rpmsg/rpmsg_char.c
@@ -262,12 +262,12 @@ static __poll_t rpmsg_eptdev_poll(struct file *filp, poll_table *wait)
262 __poll_t mask = 0; 262 __poll_t mask = 0;
263 263
264 if (!eptdev->ept) 264 if (!eptdev->ept)
265 return POLLERR; 265 return EPOLLERR;
266 266
267 poll_wait(filp, &eptdev->readq, wait); 267 poll_wait(filp, &eptdev->readq, wait);
268 268
269 if (!skb_queue_empty(&eptdev->queue)) 269 if (!skb_queue_empty(&eptdev->queue))
270 mask |= POLLIN | POLLRDNORM; 270 mask |= EPOLLIN | EPOLLRDNORM;
271 271
272 mask |= rpmsg_poll(eptdev->ept, filp, wait); 272 mask |= rpmsg_poll(eptdev->ept, filp, wait);
273 273