]> www.infradead.org Git - linux-platform-drivers-x86.git/commitdiff
blktrace: make relay callbacks const
authorJani Nikula <jani.nikula@intel.com>
Wed, 16 Dec 2020 04:46:13 +0000 (20:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2020 06:46:18 +0000 (22:46 -0800)
Now that relay_open() accepts const callbacks, make relay callbacks
const.

Link: https://lkml.kernel.org/r/7ff5ce0b735901eb4f10e13da2704f1d8c4a2507.1606153547.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/trace/blktrace.c

index f1022945e3460b0bab7dfad8e2cba4333ffb7bc5..b5c4b9ade9603a4810dd4ee551d189f3fcdd6c17 100644 (file)
@@ -449,7 +449,7 @@ static struct dentry *blk_create_buf_file_callback(const char *filename,
                                        &relay_file_operations);
 }
 
-static struct rchan_callbacks blk_relay_callbacks = {
+static const struct rchan_callbacks blk_relay_callbacks = {
        .subbuf_start           = blk_subbuf_start_callback,
        .create_buf_file        = blk_create_buf_file_callback,
        .remove_buf_file        = blk_remove_buf_file_callback,