ring_buffer_poll_wait() return value used as return value of ->poll()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 17 Jul 2017 02:11:54 +0000 (22:11 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 28 Nov 2017 16:07:12 +0000 (11:07 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/ring_buffer.h
kernel/trace/ring_buffer.c

index 289e4d54e3e05e37a620e44199681c8114259bed..7d9eb39fa76a89b89eb34a17d6b61b90294bfaa9 100644 (file)
@@ -96,7 +96,7 @@ __ring_buffer_alloc(unsigned long size, unsigned flags, struct lock_class_key *k
 })
 
 int ring_buffer_wait(struct ring_buffer *buffer, int cpu, bool full);
-int ring_buffer_poll_wait(struct ring_buffer *buffer, int cpu,
+__poll_t ring_buffer_poll_wait(struct ring_buffer *buffer, int cpu,
                          struct file *filp, poll_table *poll_table);
 
 
index 91874a95060de5de11aa47d3fbddb8c4980a0da8..d24d48713ef365bbd9831c1822b4b471cba0c0e6 100644 (file)
@@ -626,7 +626,7 @@ int ring_buffer_wait(struct ring_buffer *buffer, int cpu, bool full)
  * Returns POLLIN | POLLRDNORM if data exists in the buffers,
  * zero otherwise.
  */
-int ring_buffer_poll_wait(struct ring_buffer *buffer, int cpu,
+__poll_t ring_buffer_poll_wait(struct ring_buffer *buffer, int cpu,
                          struct file *filp, poll_table *poll_table)
 {
        struct ring_buffer_per_cpu *cpu_buffer;