Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
9dd95748
Commit
9dd95748
authored
Jul 03, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipc, kernel, mm: annotate ->poll() instances
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ade994f4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
14 deletions
+14
-14
ipc/mqueue.c
ipc/mqueue.c
+2
-2
kernel/events/core.c
kernel/events/core.c
+2
-2
kernel/printk/printk.c
kernel/printk/printk.c
+2
-2
kernel/relay.c
kernel/relay.c
+2
-2
kernel/time/posix-clock.c
kernel/time/posix-clock.c
+2
-2
kernel/trace/trace.c
kernel/trace/trace.c
+3
-3
mm/swapfile.c
mm/swapfile.c
+1
-1
No files found.
ipc/mqueue.c
View file @
9dd95748
...
...
@@ -519,10 +519,10 @@ static int mqueue_flush_file(struct file *filp, fl_owner_t id)
return
0
;
}
static
unsigned
in
t
mqueue_poll_file
(
struct
file
*
filp
,
struct
poll_table_struct
*
poll_tab
)
static
__poll_
t
mqueue_poll_file
(
struct
file
*
filp
,
struct
poll_table_struct
*
poll_tab
)
{
struct
mqueue_inode_info
*
info
=
MQUEUE_I
(
file_inode
(
filp
));
in
t
retval
=
0
;
__poll_
t
retval
=
0
;
poll_wait
(
filp
,
&
info
->
wait_q
,
poll_tab
);
...
...
kernel/events/core.c
View file @
9dd95748
...
...
@@ -4511,11 +4511,11 @@ perf_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
return
ret
;
}
static
unsigned
in
t
perf_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
perf_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
perf_event
*
event
=
file
->
private_data
;
struct
ring_buffer
*
rb
;
unsigned
in
t
events
=
POLLHUP
;
__poll_
t
events
=
POLLHUP
;
poll_wait
(
file
,
&
event
->
waitq
,
wait
);
...
...
kernel/printk/printk.c
View file @
9dd95748
...
...
@@ -920,10 +920,10 @@ static loff_t devkmsg_llseek(struct file *file, loff_t offset, int whence)
return
ret
;
}
static
unsigned
in
t
devkmsg_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
devkmsg_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
devkmsg_user
*
user
=
file
->
private_data
;
in
t
ret
=
0
;
__poll_
t
ret
=
0
;
if
(
!
user
)
return
POLLERR
|
POLLNVAL
;
...
...
kernel/relay.c
View file @
9dd95748
...
...
@@ -919,9 +919,9 @@ static int relay_file_mmap(struct file *filp, struct vm_area_struct *vma)
*
* Poll implemention.
*/
static
unsigned
in
t
relay_file_poll
(
struct
file
*
filp
,
poll_table
*
wait
)
static
__poll_
t
relay_file_poll
(
struct
file
*
filp
,
poll_table
*
wait
)
{
unsigned
in
t
mask
=
0
;
__poll_
t
mask
=
0
;
struct
rchan_buf
*
buf
=
filp
->
private_data
;
if
(
buf
->
finalized
)
...
...
kernel/time/posix-clock.c
View file @
9dd95748
...
...
@@ -68,10 +68,10 @@ static ssize_t posix_clock_read(struct file *fp, char __user *buf,
return
err
;
}
static
unsigned
in
t
posix_clock_poll
(
struct
file
*
fp
,
poll_table
*
wait
)
static
__poll_
t
posix_clock_poll
(
struct
file
*
fp
,
poll_table
*
wait
)
{
struct
posix_clock
*
clk
=
get_posix_clock
(
fp
);
unsigned
in
t
result
=
0
;
__poll_
t
result
=
0
;
if
(
!
clk
)
return
POLLERR
;
...
...
kernel/trace/trace.c
View file @
9dd95748
...
...
@@ -5632,7 +5632,7 @@ static int tracing_release_pipe(struct inode *inode, struct file *file)
return
0
;
}
static
unsigned
in
t
static
__poll_
t
trace_poll
(
struct
trace_iterator
*
iter
,
struct
file
*
filp
,
poll_table
*
poll_table
)
{
struct
trace_array
*
tr
=
iter
->
tr
;
...
...
@@ -5651,7 +5651,7 @@ trace_poll(struct trace_iterator *iter, struct file *filp, poll_table *poll_tabl
filp
,
poll_table
);
}
static
unsigned
in
t
static
__poll_
t
tracing_poll_pipe
(
struct
file
*
filp
,
poll_table
*
poll_table
)
{
struct
trace_iterator
*
iter
=
filp
->
private_data
;
...
...
@@ -6605,7 +6605,7 @@ static int tracing_buffers_open(struct inode *inode, struct file *filp)
return
ret
;
}
static
unsigned
in
t
static
__poll_
t
tracing_buffers_poll
(
struct
file
*
filp
,
poll_table
*
poll_table
)
{
struct
ftrace_buffer_info
*
info
=
filp
->
private_data
;
...
...
mm/swapfile.c
View file @
9dd95748
...
...
@@ -2697,7 +2697,7 @@ SYSCALL_DEFINE1(swapoff, const char __user *, specialfile)
}
#ifdef CONFIG_PROC_FS
static
unsigned
swaps_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_t
swaps_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
seq_file
*
seq
=
file
->
private_data
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment