bfq: Fix bfq linkage error
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 14 Sep 2019 17:31:50 +0000 (20:31 +0300)
committerJens Axboe <axboe@kernel.dk>
Sat, 14 Sep 2019 17:33:43 +0000 (11:33 -0600)
Since commit 795fe54c2a828099e ("bfq: Add per-device weight"), bfq uses
blkg_conf_prep() and blkg_conf_finish(), which are not exported. So, it
causes linkage error if bfq compiled as a module.

Fixes: 795fe54c2a828099e ("bfq: Add per-device weight")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c

index 0e2619c1a4225c3535152d7b36b0ab1680c13851..b6f20be0fc78c16a2984294386a25b2893f677fc 100644 (file)
@@ -900,6 +900,7 @@ fail:
        }
        return ret;
 }
+EXPORT_SYMBOL_GPL(blkg_conf_prep);
 
 /**
  * blkg_conf_finish - finish up per-blkg config update
@@ -915,6 +916,7 @@ void blkg_conf_finish(struct blkg_conf_ctx *ctx)
        rcu_read_unlock();
        put_disk_and_module(ctx->disk);
 }
+EXPORT_SYMBOL_GPL(blkg_conf_finish);
 
 static int blkcg_print_stat(struct seq_file *sf, void *v)
 {