From: Christoph Hellwig Date: Wed, 13 May 2020 10:49:32 +0000 (+0200) Subject: block: mark blk_account_io_completion static X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f1394b79881458c3cfb12c1cac813085549f2c7d;p=linux.git block: mark blk_account_io_completion static Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe --- diff --git a/block/blk-core.c b/block/blk-core.c index 78683ea61c939..d8df56e9bffbc 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1381,7 +1381,7 @@ unsigned int blk_rq_err_bytes(const struct request *rq) } EXPORT_SYMBOL_GPL(blk_rq_err_bytes); -void blk_account_io_completion(struct request *req, unsigned int bytes) +static void blk_account_io_completion(struct request *req, unsigned int bytes) { if (req->part && blk_do_io_stat(req)) { const int sgrp = op_stat_group(req_op(req)); diff --git a/block/blk.h b/block/blk.h index 9e6ed5f118239..eb09216b533a0 100644 --- a/block/blk.h +++ b/block/blk.h @@ -187,7 +187,6 @@ bool blk_attempt_plug_merge(struct request_queue *q, struct bio *bio, unsigned int nr_segs, struct request **same_queue_rq); void blk_account_io_start(struct request *req, bool new_io); -void blk_account_io_completion(struct request *req, unsigned int bytes); void blk_account_io_done(struct request *req, u64 now); /*