aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/net.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-07-02 22:22:01 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-11-27 16:19:52 -0500
commita3f8683bf7d5e6254fe68f5c5d3585e27eea8ed0 (patch)
treea4fcb5f30ea25b969f9acfc8fdf53a1f401c7e84 /include/linux/net.h
parentdefine __poll_t, annotate constants (diff)
downloadlinux-dev-a3f8683bf7d5e6254fe68f5c5d3585e27eea8ed0.tar.xz
linux-dev-a3f8683bf7d5e6254fe68f5c5d3585e27eea8ed0.zip
->poll() methods should return __poll_t
The most common place to find POLL... bitmaps: return values of ->poll() and its subsystem counterparts. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/net.h')
-rw-r--r--include/linux/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/net.h b/include/linux/net.h
index caeb159abda5..c2d468cb9821 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -147,7 +147,7 @@ struct proto_ops {
int (*getname) (struct socket *sock,
struct sockaddr *addr,
int *sockaddr_len, int peer);
- unsigned int (*poll) (struct file *file, struct socket *sock,
+ __poll_t (*poll) (struct file *file, struct socket *sock,
struct poll_table_struct *wait);
int (*ioctl) (struct socket *sock, unsigned int cmd,
unsigned long arg);