diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-02-18 01:33:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-18 01:33:57 -0500 |
commit | 05705e4e1158ad2c1a22817f27d91ff0758fd0a9 (patch) | |
tree | 5c1607c615c9c1582305751340456a022a97df63 | |
parent | 227c43c3bca76df704231324405980851dc7f528 (diff) |
[NETLABEL]: Move some initialization code into __init section.
Everything that is called from netlbl_init() can be marked with
__init. This moves 620 bytes from .text section to .text.init one.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/netlabel/netlabel_cipso_v4.c | 2 | ||||
-rw-r--r-- | net/netlabel/netlabel_domainhash.c | 2 | ||||
-rw-r--r-- | net/netlabel/netlabel_mgmt.c | 2 | ||||
-rw-r--r-- | net/netlabel/netlabel_unlabeled.c | 6 | ||||
-rw-r--r-- | net/netlabel/netlabel_user.c | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/net/netlabel/netlabel_cipso_v4.c b/net/netlabel/netlabel_cipso_v4.c index 283ff4a527fd..fdc14a0d21af 100644 --- a/net/netlabel/netlabel_cipso_v4.c +++ b/net/netlabel/netlabel_cipso_v4.c | |||
@@ -761,7 +761,7 @@ static struct genl_ops netlbl_cipsov4_ops[] = { | |||
761 | * mechanism. Returns zero on success, negative values on failure. | 761 | * mechanism. Returns zero on success, negative values on failure. |
762 | * | 762 | * |
763 | */ | 763 | */ |
764 | int netlbl_cipsov4_genl_init(void) | 764 | int __init netlbl_cipsov4_genl_init(void) |
765 | { | 765 | { |
766 | int ret_val, i; | 766 | int ret_val, i; |
767 | 767 | ||
diff --git a/net/netlabel/netlabel_domainhash.c b/net/netlabel/netlabel_domainhash.c index fd462313471c..02c2f7c0b255 100644 --- a/net/netlabel/netlabel_domainhash.c +++ b/net/netlabel/netlabel_domainhash.c | |||
@@ -171,7 +171,7 @@ static struct netlbl_dom_map *netlbl_domhsh_search_def(const char *domain) | |||
171 | * values on error. | 171 | * values on error. |
172 | * | 172 | * |
173 | */ | 173 | */ |
174 | int netlbl_domhsh_init(u32 size) | 174 | int __init netlbl_domhsh_init(u32 size) |
175 | { | 175 | { |
176 | u32 iter; | 176 | u32 iter; |
177 | struct netlbl_domhsh_tbl *hsh_tbl; | 177 | struct netlbl_domhsh_tbl *hsh_tbl; |
diff --git a/net/netlabel/netlabel_mgmt.c b/net/netlabel/netlabel_mgmt.c index 05d98862fbd4..22c191267808 100644 --- a/net/netlabel/netlabel_mgmt.c +++ b/net/netlabel/netlabel_mgmt.c | |||
@@ -588,7 +588,7 @@ static struct genl_ops netlbl_mgmt_genl_ops[] = { | |||
588 | * mechanism. Returns zero on success, negative values on failure. | 588 | * mechanism. Returns zero on success, negative values on failure. |
589 | * | 589 | * |
590 | */ | 590 | */ |
591 | int netlbl_mgmt_genl_init(void) | 591 | int __init netlbl_mgmt_genl_init(void) |
592 | { | 592 | { |
593 | int ret_val, i; | 593 | int ret_val, i; |
594 | 594 | ||
diff --git a/net/netlabel/netlabel_unlabeled.c b/net/netlabel/netlabel_unlabeled.c index f0f1322911de..4478f2f6079d 100644 --- a/net/netlabel/netlabel_unlabeled.c +++ b/net/netlabel/netlabel_unlabeled.c | |||
@@ -1624,7 +1624,7 @@ static struct genl_ops netlbl_unlabel_genl_ops[] = { | |||
1624 | * mechanism. Returns zero on success, negative values on failure. | 1624 | * mechanism. Returns zero on success, negative values on failure. |
1625 | * | 1625 | * |
1626 | */ | 1626 | */ |
1627 | int netlbl_unlabel_genl_init(void) | 1627 | int __init netlbl_unlabel_genl_init(void) |
1628 | { | 1628 | { |
1629 | int ret_val, i; | 1629 | int ret_val, i; |
1630 | 1630 | ||
@@ -1661,7 +1661,7 @@ static struct notifier_block netlbl_unlhsh_netdev_notifier = { | |||
1661 | * non-zero values on error. | 1661 | * non-zero values on error. |
1662 | * | 1662 | * |
1663 | */ | 1663 | */ |
1664 | int netlbl_unlabel_init(u32 size) | 1664 | int __init netlbl_unlabel_init(u32 size) |
1665 | { | 1665 | { |
1666 | u32 iter; | 1666 | u32 iter; |
1667 | struct netlbl_unlhsh_tbl *hsh_tbl; | 1667 | struct netlbl_unlhsh_tbl *hsh_tbl; |
@@ -1765,7 +1765,7 @@ unlabel_getattr_nolabel: | |||
1765 | * and to send unlabeled network traffic by default. | 1765 | * and to send unlabeled network traffic by default. |
1766 | * | 1766 | * |
1767 | */ | 1767 | */ |
1768 | int netlbl_unlabel_defconf(void) | 1768 | int __init netlbl_unlabel_defconf(void) |
1769 | { | 1769 | { |
1770 | int ret_val; | 1770 | int ret_val; |
1771 | struct netlbl_dom_map *entry; | 1771 | struct netlbl_dom_map *entry; |
diff --git a/net/netlabel/netlabel_user.c b/net/netlabel/netlabel_user.c index 023fc8fe840d..b17d4203806e 100644 --- a/net/netlabel/netlabel_user.c +++ b/net/netlabel/netlabel_user.c | |||
@@ -59,7 +59,7 @@ | |||
59 | * non-zero on failure. | 59 | * non-zero on failure. |
60 | * | 60 | * |
61 | */ | 61 | */ |
62 | int netlbl_netlink_init(void) | 62 | int __init netlbl_netlink_init(void) |
63 | { | 63 | { |
64 | int ret_val; | 64 | int ret_val; |
65 | 65 | ||