From: Jens Axboe <axboe@kernel.dk>
To: Vladimir Zapolskiy <vz@mleia.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] block: cfq-iosched: fix unused 'cpd_to_cfqgd' function warning
Date: Fri, 19 Jun 2015 10:15:37 -0600 [thread overview]
Message-ID: <55844029.5090002@kernel.dk> (raw)
In-Reply-To: <1434666793-13339-1-git-send-email-vz@mleia.com>
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/
prev parent reply other threads:[~2015-06-19 16:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-18 22:33 Vladimir Zapolskiy
2015-06-19 16:15 ` Jens Axboe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55844029.5090002@kernel.dk \
--to=axboe@kernel.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=vz@mleia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome