Skip to content
  • Tejun Heo's avatar
    cfq: fix build breakage & warnings · f48ec1d7
    Tejun Heo authored
    
    
    * 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: default avatarTejun Heo <tj@kernel.org>
    Cc: Vivek Goyal <vgoyal@redhat.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    f48ec1d7