Re: [PATCH] ring-buffer: remove obsolete rb_event_is_commit()
From: Nathan Chancellor
Date: Tue Nov 17 2020 - 11:20:08 EST
On Tue, Nov 17, 2020 at 06:37:03AM +0100, Lukas Bulwahn wrote:
> Commit a389d86f7fd0 ("ring-buffer: Have nested events still record running
> time stamp") removed the only uses of rb_event_is_commit() in
> rb_update_event() and rb_update_write_stamp().
>
> Hence, since then, make CC=clang W=1 warns:
>
> kernel/trace/ring_buffer.c:2763:1:
> warning: unused function 'rb_event_is_commit' [-Wunused-function]
>
> Remove this obsolete function.
>
> Signed-off-by: Lukas Bulwahn <lukas.bulwahn@xxxxxxxxx>
> ---
Reviewed-by: Nathan Chancellor <natechancellor@xxxxxxxxx>