From: Wang Hai Date: Mon, 7 Sep 2020 14:06:52 +0000 (+0800) Subject: blktrace: make function blk_trace_bio_get_cgid() static X-Git-Tag: v5.15~2716^2~116 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e75ad2cc41832bae3218e3d6f38b3f03ae0a41df;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Wang Hai Signed-off-by: Jens Axboe --- diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c index 4b3a42f..c0887f3 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; }