From: Jens Axboe Date: Fri, 19 Jun 2015 16:13:01 +0000 (-0600) Subject: cfq-iosched: move group scheduling functions under ifdef X-Git-Tag: omap-for-v4.3/legacy-v2-signed~149^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ceab71b9d84e55b59a76b54b2999dc377aae6e6;p=pandora-kernel.git cfq-iosched: move group scheduling functions under ifdef If CFQ_GROUP_IOSCHED is not set, the compiler produces the following warning: CC block/cfq-iosched.o linux/block/cfq-iosched.c:469:2: warning: 'cpd_to_cfqgd' defined but not used [-Wunused-function] *cpd_to_cfqgd(struct blkcg_policy_data *cpd) ^ In reality, two other lookup functions aren't used either if CFQ_GROUP_IOSCHED isn't set. Move all three under one of the CFQ_GROUP_IOSCHED sections in the code. Reported-by: Vladimir Zapolskiy Signed-off-by: Jens Axboe --- Reading git-diff-tree failed