ring-buffer: Make ring_buffer_record_is_on() return bool
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 2 Aug 2018 01:08:30 +0000 (21:08 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 2 Aug 2018 01:08:30 +0000 (21:08 -0400)
The value of ring_buffer_record_is_on() is either true or false, so have its
return value be bool.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/ring_buffer.h
kernel/trace/ring_buffer.c

index 003d09ab308d99681a56e01b0f3bd7f3c8cce4a0..5176124fc4ba3060d5b26b0be93191c980f936b7 100644 (file)
@@ -164,7 +164,7 @@ void ring_buffer_record_disable(struct ring_buffer *buffer);
 void ring_buffer_record_enable(struct ring_buffer *buffer);
 void ring_buffer_record_off(struct ring_buffer *buffer);
 void ring_buffer_record_on(struct ring_buffer *buffer);
-int ring_buffer_record_is_on(struct ring_buffer *buffer);
+bool ring_buffer_record_is_on(struct ring_buffer *buffer);
 int ring_buffer_record_is_set_on(struct ring_buffer *buffer);
 void ring_buffer_record_disable_cpu(struct ring_buffer *buffer, int cpu);
 void ring_buffer_record_enable_cpu(struct ring_buffer *buffer, int cpu);
index 0b0b688ea166f29bd73b22ef302f3cb3776ea424..ffb43cbc5c1375bf19cb20f9ca149c6f0f265a1f 100644 (file)
@@ -3221,7 +3221,7 @@ EXPORT_SYMBOL_GPL(ring_buffer_record_on);
  *
  * Returns true if the ring buffer is in a state that it accepts writes.
  */
-int ring_buffer_record_is_on(struct ring_buffer *buffer)
+bool ring_buffer_record_is_on(struct ring_buffer *buffer)
 {
        return !atomic_read(&buffer->record_disabled);
 }