summaryrefslogtreecommitdiffstats
path: root/kernel/trace/blktrace.c
diff options
context:
space:
mode:
authorWang Hai <wanghai38@huawei.com>2020-09-07 16:06:52 +0200
committerJens Axboe <axboe@kernel.dk>2020-09-08 04:11:15 +0200
commite75ad2cc41832bae3218e3d6f38b3f03ae0a41df (patch)
treeace677fa3519327db2f5f494ee3646f8aaf98cc8 /kernel/trace/blktrace.c
parentblock: Remove unused blk_mq_sched_free_hctx_data() (diff)
downloadlinux-e75ad2cc41832bae3218e3d6f38b3f03ae0a41df.tar.xz
linux-e75ad2cc41832bae3218e3d6f38b3f03ae0a41df.zip
blktrace: make function blk_trace_bio_get_cgid() static
The sparse tool complains as follows: kernel/trace/blktrace.c:796:5: warning: symbol 'blk_trace_bio_get_cgid' was not declared. Should it be static? This function is not used outside of blktrace.c, so this commit marks it static. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wang Hai <wanghai38@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/trace/blktrace.c')
-rw-r--r--kernel/trace/blktrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c
index 4b3a42fc3b24..c0887f32f647 100644
--- a/kernel/trace/blktrace.c
+++ b/kernel/trace/blktrace.c
@@ -793,7 +793,7 @@ static u64 blk_trace_bio_get_cgid(struct request_queue *q, struct bio *bio)
return cgroup_id(bio_blkcg(bio)->css.cgroup);
}
#else
-u64 blk_trace_bio_get_cgid(struct request_queue *q, struct bio *bio)
+static u64 blk_trace_bio_get_cgid(struct request_queue *q, struct bio *bio)
{
return 0;
}