]> 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)
commit431b460e97276a82bd9f56e3444bcbc76e08edaf
treef394ff2b1c491e1c0dc63ef7bc8e04e77de98e99
parent1b06fab1f4a3b0074c59fdaff023ca0a5ec286df
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