diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-16 22:11:54 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-11-28 11:07:12 -0500 |
commit | ecf927000ce3265e9871c79d43c10ceed8bd61c9 (patch) | |
tree | 34df2dbdb22f40cb732a0bbc2fd19c664532f1a7 | |
parent | afc9a42b7464f76e1388cad87d8543c69f6f74ed (diff) |
ring_buffer_poll_wait() return value used as return value of ->poll()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | include/linux/ring_buffer.h | 2 | ||||
-rw-r--r-- | kernel/trace/ring_buffer.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h index 289e4d54e3e0..7d9eb39fa76a 100644 --- a/include/linux/ring_buffer.h +++ b/include/linux/ring_buffer.h | |||
@@ -96,7 +96,7 @@ __ring_buffer_alloc(unsigned long size, unsigned flags, struct lock_class_key *k | |||
96 | }) | 96 | }) |
97 | 97 | ||
98 | int ring_buffer_wait(struct ring_buffer *buffer, int cpu, bool full); | 98 | int ring_buffer_wait(struct ring_buffer *buffer, int cpu, bool full); |
99 | int ring_buffer_poll_wait(struct ring_buffer *buffer, int cpu, | 99 | __poll_t ring_buffer_poll_wait(struct ring_buffer *buffer, int cpu, |
100 | struct file *filp, poll_table *poll_table); | 100 | struct file *filp, poll_table *poll_table); |
101 | 101 | ||
102 | 102 | ||
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index 91874a95060d..d24d48713ef3 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c | |||
@@ -626,7 +626,7 @@ int ring_buffer_wait(struct ring_buffer *buffer, int cpu, bool full) | |||
626 | * Returns POLLIN | POLLRDNORM if data exists in the buffers, | 626 | * Returns POLLIN | POLLRDNORM if data exists in the buffers, |
627 | * zero otherwise. | 627 | * zero otherwise. |
628 | */ | 628 | */ |
629 | int ring_buffer_poll_wait(struct ring_buffer *buffer, int cpu, | 629 | __poll_t ring_buffer_poll_wait(struct ring_buffer *buffer, int cpu, |
630 | struct file *filp, poll_table *poll_table) | 630 | struct file *filp, poll_table *poll_table) |
631 | { | 631 | { |
632 | struct ring_buffer_per_cpu *cpu_buffer; | 632 | struct ring_buffer_per_cpu *cpu_buffer; |