Re: [PATCH] block: cfq-iosched: fix unused 'cpd_to_cfqgd' function warning
From: Jens Axboe
Date: Fri Jun 19 2015 - 12:15:49 EST
On 06/18/2015 04:33 PM, Vladimir Zapolskiy wrote:
If CFQ_GROUP_IOSCHED kernel option is not set, a 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)
^
Define this function only if CFQ_GROUP_IOSCHED is set and remove
the compilation warning.
The two other related functions aren't used either if group scheduling
isn't enabled. I committed this instead:
http://git.kernel.dk/cgit/linux-block/commit/?h=for-4.2/core&id=4ceab71b9d84e55b59a76b54b2999dc377aae6e6
--
Jens Axboe
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at http://www.tux.org/lkml/