]> git.baikalelectronics.ru Git - kernel.git/commit
block: Declare several function pointer arguments 'const'
authorBart Van Assche <bvanassche@acm.org>
Thu, 1 Aug 2019 22:50:40 +0000 (15:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Aug 2019 03:41:29 +0000 (21:41 -0600)
commit4c44183fc6be293b8dcf803f3d57505797602d26
treef394ff2b1c491e1c0dc63ef7bc8e04e77de98e99
parentd922cb0cc52676141e0d167d76078b6724be015c
block: Declare several function pointer arguments 'const'

Make it clear to the compiler and also to humans that the functions
that query request queue properties do not modify any member of the
request_queue data structure.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c
include/linux/blkdev.h