diff options
author | 2014-06-10 20:18:36 +0200 | |
---|---|---|
committer | 2014-06-10 13:13:12 -0600 | |
commit | a2d445d440003f2d70ee4cd4970ea82ace616fee (patch) | |
tree | 001d0cda6d39b90de62451fd56a4fc5a1a7e92da /block/blk-cgroup.c | |
parent | block: add __init to elv_register (diff) | |
download | linux-a2d445d440003f2d70ee4cd4970ea82ace616fee.tar.gz linux-a2d445d440003f2d70ee4cd4970ea82ace616fee.tar.bz2 linux-a2d445d440003f2d70ee4cd4970ea82ace616fee.zip |
block: add __init to blkcg_policy_register
blkcg_policy_register is only called by
__init functions:
__init cfq_init
__init throtl_init
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-cgroup.c')
-rw-r--r-- | block/blk-cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 1039fb9ff5f5..5aa9b8b8a362 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c @@ -1093,7 +1093,7 @@ EXPORT_SYMBOL_GPL(blkcg_deactivate_policy); * Register @pol with blkcg core. Might sleep and @pol may be modified on * successful registration. Returns 0 on success and -errno on failure. */ -int blkcg_policy_register(struct blkcg_policy *pol) +int __init blkcg_policy_register(struct blkcg_policy *pol) { int i, ret; |