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
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:

Jens Axboe

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at