diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-08-01 21:09:50 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-08-01 21:09:50 -0400 |
commit | d7224c0e128c7337c0b0f66ac20921fbbf4efc14 (patch) | |
tree | 277ea43b46eb8bfc97452e9066bda12335649624 /kernel/trace | |
parent | 3ebea280d7e9b610fa3d31c9cfd556b1705eeedf (diff) | |
download | linux-stable-d7224c0e128c7337c0b0f66ac20921fbbf4efc14.tar.gz linux-stable-d7224c0e128c7337c0b0f66ac20921fbbf4efc14.tar.bz2 linux-stable-d7224c0e128c7337c0b0f66ac20921fbbf4efc14.zip |
ring-buffer: Make ring_buffer_record_is_set_on() return bool
The value of ring_buffer_record_is_set_on() is either true or false, so have
its return value be bool.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/ring_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index ffb43cbc5c13..b386830b4d51 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c @@ -3237,7 +3237,7 @@ bool ring_buffer_record_is_on(struct ring_buffer *buffer) * ring_buffer_record_disable(), as that is a temporary disabling of * the ring buffer. */ -int ring_buffer_record_is_set_on(struct ring_buffer *buffer) +bool ring_buffer_record_is_set_on(struct ring_buffer *buffer) { return !(atomic_read(&buffer->record_disabled) & RB_BUFFER_OFF); } |