diff options
author | Yaowei Bai <bywxiaobai@163.com> | 2015-09-29 17:43:32 +0300 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-11-02 22:23:38 +0300 |
commit | 3d4e204d81eec30abffe55d01912e07ce81eef12 (patch) | |
tree | 13418a32742d938683cbbdfa2cf5b712a773d8eb /include | |
parent | 06ca320952dc21c537055d2aa36a2c2e96a1b94d (diff) | |
download | linux-3d4e204d81eec30abffe55d01912e07ce81eef12.tar.xz |
ring_buffer: ring_buffer_empty{cpu}() can return boolean
Make ring_buffer_empty() and ring_buffer_empty_cpu() return bool.
No functional change.
Link: http://lkml.kernel.org/r/1443537816-5788-5-git-send-email-bywxiaobai@163.com
Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ring_buffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h index e2c13cd863bd..4acc552e9279 100644 --- a/include/linux/ring_buffer.h +++ b/include/linux/ring_buffer.h @@ -154,8 +154,8 @@ ring_buffer_swap_cpu(struct ring_buffer *buffer_a, } #endif -int ring_buffer_empty(struct ring_buffer *buffer); -int ring_buffer_empty_cpu(struct ring_buffer *buffer, int cpu); +bool ring_buffer_empty(struct ring_buffer *buffer); +bool ring_buffer_empty_cpu(struct ring_buffer *buffer, int cpu); void ring_buffer_record_disable(struct ring_buffer *buffer); void ring_buffer_record_enable(struct ring_buffer *buffer); |