From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752645AbbLMUGs (ORCPT ); Sun, 13 Dec 2015 15:06:48 -0500 Received: from mail.windriver.com ([147.11.1.11]:58851 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752574AbbLMUGp (ORCPT ); Sun, 13 Dec 2015 15:06:45 -0500 From: Paul Gortmaker To: CC: Paul Gortmaker , Vivek Goyal , Jens Axboe Subject: [PATCH 2/3] block: make blk-throttle.c explicitly non-modular Date: Sun, 13 Dec 2015 15:04:03 -0500 Message-ID: <1450037044-27628-3-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1450037044-27628-1-git-send-email-paul.gortmaker@windriver.com> References: <1450037044-27628-1-git-send-email-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Jens Axboe Signed-off-by: Paul Gortmaker --- 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 */ -#include +#include #include #include #include @@ -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