[PATCH 2/3] block: make blk-throttle.c explicitly non-modular
From: Paul Gortmaker
Date: Sun Dec 13 2015 - 15:06:51 EST
The Kconfig currently controlling compilation of this code is:
config BLK_DEV_THROTTLING
bool "Block layer bio throttling support"
...meaning that it currently is not being built as a module by anyone.
Lets remove the couple traces of modularity so that when reading the
code there is no doubt it is builtin-only.
Since module_init translates to device_initcall in the non-modular
case, the init ordering remains unchanged with this commit.
Cc: Vivek Goyal <vgoyal@xxxxxxxxxx>
Cc: Jens Axboe <axboe@xxxxxxxxx>
Signed-off-by: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx>
---
block/blk-throttle.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index 2149a1ddbacf..bec1dedf4061 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -4,7 +4,7 @@
* Copyright (C) 2010 Vivek Goyal <vgoyal@xxxxxxxxxx>
*/
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/slab.h>
#include <linux/blkdev.h>
#include <linux/bio.h>
@@ -1590,5 +1590,4 @@ static int __init throtl_init(void)
return blkcg_policy_register(&blkcg_policy_throtl);
}
-
-module_init(throtl_init);
+device_initcall(throtl_init);
--
2.6.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/