the rest of drivers/*: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -919,12 +919,12 @@ static int qcom_smd_trysend(struct rpmsg_endpoint *ept, void *data, int len)
|
||||
return __qcom_smd_send(qsept->qsch, data, len, false);
|
||||
}
|
||||
|
||||
static unsigned int qcom_smd_poll(struct rpmsg_endpoint *ept,
|
||||
static __poll_t qcom_smd_poll(struct rpmsg_endpoint *ept,
|
||||
struct file *filp, poll_table *wait)
|
||||
{
|
||||
struct qcom_smd_endpoint *qsept = to_smd_endpoint(ept);
|
||||
struct qcom_smd_channel *channel = qsept->qsch;
|
||||
unsigned int mask = 0;
|
||||
__poll_t mask = 0;
|
||||
|
||||
poll_wait(filp, &channel->fblockread_event, wait);
|
||||
|
||||
|
||||
@@ -256,10 +256,10 @@ free_kbuf:
|
||||
return ret < 0 ? ret : len;
|
||||
}
|
||||
|
||||
static unsigned int rpmsg_eptdev_poll(struct file *filp, poll_table *wait)
|
||||
static __poll_t rpmsg_eptdev_poll(struct file *filp, poll_table *wait)
|
||||
{
|
||||
struct rpmsg_eptdev *eptdev = filp->private_data;
|
||||
unsigned int mask = 0;
|
||||
__poll_t mask = 0;
|
||||
|
||||
if (!eptdev->ept)
|
||||
return POLLERR;
|
||||
|
||||
@@ -247,7 +247,7 @@ EXPORT_SYMBOL(rpmsg_trysendto);
|
||||
*
|
||||
* Returns mask representing the current state of the endpoint's send buffers
|
||||
*/
|
||||
unsigned int rpmsg_poll(struct rpmsg_endpoint *ept, struct file *filp,
|
||||
__poll_t rpmsg_poll(struct rpmsg_endpoint *ept, struct file *filp,
|
||||
poll_table *wait)
|
||||
{
|
||||
if (WARN_ON(!ept))
|
||||
|
||||
@@ -71,7 +71,7 @@ struct rpmsg_endpoint_ops {
|
||||
int (*trysendto)(struct rpmsg_endpoint *ept, void *data, int len, u32 dst);
|
||||
int (*trysend_offchannel)(struct rpmsg_endpoint *ept, u32 src, u32 dst,
|
||||
void *data, int len);
|
||||
unsigned int (*poll)(struct rpmsg_endpoint *ept, struct file *filp,
|
||||
__poll_t (*poll)(struct rpmsg_endpoint *ept, struct file *filp,
|
||||
poll_table *wait);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user