]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Revert "block: add __init to blkcg_policy_register"
authorJens Axboe <axboe@fb.com>
Sun, 22 Jun 2014 22:31:56 +0000 (16:31 -0600)
committerJens Axboe <axboe@fb.com>
Sun, 22 Jun 2014 22:34:11 +0000 (16:34 -0600)
This reverts commit a2d445d440003f2d70ee4cd4970ea82ace616fee.

The original commit is buggy, we do use the registration functions
at runtime for modular builds.

block/blk-cgroup.c
block/blk-cgroup.h

index 1463ca6b7aaea866523aef8e898c2a7ab59cdf78..b9f4cc494ecefbf2560483bdc4685bb98d59b5d3 100644 (file)
@@ -1090,7 +1090,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 __init blkcg_policy_register(struct blkcg_policy *pol)
+int blkcg_policy_register(struct blkcg_policy *pol)
 {
        int i, ret;
 
index 1c401b05715171421ecfa14523d37d48d9aca169..d3fd7aa3d2a369f9ef0017ece713965c95529e82 100644 (file)
@@ -146,7 +146,7 @@ void blkcg_drain_queue(struct request_queue *q);
 void blkcg_exit_queue(struct request_queue *q);
 
 /* Blkio controller policy registration */
-int __init blkcg_policy_register(struct blkcg_policy *pol);
+int blkcg_policy_register(struct blkcg_policy *pol);
 void blkcg_policy_unregister(struct blkcg_policy *pol);
 int blkcg_activate_policy(struct request_queue *q,
                          const struct blkcg_policy *pol);
@@ -577,7 +577,7 @@ static inline struct blkcg_gq *blkg_lookup(struct blkcg *blkcg, void *key) { ret
 static inline int blkcg_init_queue(struct request_queue *q) { return 0; }
 static inline void blkcg_drain_queue(struct request_queue *q) { }
 static inline void blkcg_exit_queue(struct request_queue *q) { }
-static inline int __init blkcg_policy_register(struct blkcg_policy *pol) { return 0; }
+static inline int blkcg_policy_register(struct blkcg_policy *pol) { return 0; }
 static inline void blkcg_policy_unregister(struct blkcg_policy *pol) { }
 static inline int blkcg_activate_policy(struct request_queue *q,
                                        const struct blkcg_policy *pol) { return 0; }