cfq: fix build breakage & warnings
authorTejun Heo <tj@kernel.org>
Fri, 13 Apr 2012 20:11:25 +0000 (13:11 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Apr 2012 08:06:06 +0000 (10:06 +0200)
commitf48ec1d7885281a9c6cd7779d61f321d1b1fd741
tree87f94a60dae017dc68b76605f76b89031004a7f7
parent5bc4afb1ec6aa562fac4d9aba34d957ee42f5813
cfq: fix build breakage & warnings

* CFQ_WEIGHT_* defined inside CONFIG_BLK_CGROUP causes cfq-iosched.c
  compile failure when the config is disabled.  Move it outside the
  ifdef block.

* Dummy cfqg_stats_*() definitions were lacking inline modifiers
  causing unused functions warning if !CONFIG_CFQ_GROUP_IOSCHED.  Add
  them.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.h
block/cfq-iosched.c