aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/poll.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/poll.h')
-rw-r--r--include/linux/poll.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/poll.h b/include/linux/poll.h
index d384f12abdd5..04781a753326 100644
--- a/include/linux/poll.h
+++ b/include/linux/poll.h
@@ -37,7 +37,7 @@ typedef void (*poll_queue_proc)(struct file *, wait_queue_head_t *, struct poll_
37 */ 37 */
38typedef struct poll_table_struct { 38typedef struct poll_table_struct {
39 poll_queue_proc _qproc; 39 poll_queue_proc _qproc;
40 unsigned long _key; 40 __poll_t _key;
41} poll_table; 41} poll_table;
42 42
43static inline void poll_wait(struct file * filp, wait_queue_head_t * wait_address, poll_table *p) 43static inline void poll_wait(struct file * filp, wait_queue_head_t * wait_address, poll_table *p)
@@ -62,20 +62,20 @@ static inline bool poll_does_not_wait(const poll_table *p)
62 * to be started implicitly on poll(). You typically only want to do that 62 * to be started implicitly on poll(). You typically only want to do that
63 * if the application is actually polling for POLLIN and/or POLLOUT. 63 * if the application is actually polling for POLLIN and/or POLLOUT.
64 */ 64 */
65static inline unsigned long poll_requested_events(const poll_table *p) 65static inline __poll_t poll_requested_events(const poll_table *p)
66{ 66{
67 return p ? p->_key : ~0UL; 67 return p ? p->_key : ~(__poll_t)0;
68} 68}
69 69
70static inline void init_poll_funcptr(poll_table *pt, poll_queue_proc qproc) 70static inline void init_poll_funcptr(poll_table *pt, poll_queue_proc qproc)
71{ 71{
72 pt->_qproc = qproc; 72 pt->_qproc = qproc;
73 pt->_key = ~0UL; /* all events enabled */ 73 pt->_key = ~(__poll_t)0; /* all events enabled */
74} 74}
75 75
76struct poll_table_entry { 76struct poll_table_entry {
77 struct file *filp; 77 struct file *filp;
78 unsigned long key; 78 __poll_t key;
79 wait_queue_entry_t wait; 79 wait_queue_entry_t wait;
80 wait_queue_head_t *wait_address; 80 wait_queue_head_t *wait_address;
81}; 81};