]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[NETLABEL]: Move some initialization code into __init section.
authorPavel Emelyanov <xemul@openvz.org>
Mon, 18 Feb 2008 06:33:57 +0000 (22:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Feb 2008 06:33:57 +0000 (22:33 -0800)
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>
net/netlabel/netlabel_cipso_v4.c
net/netlabel/netlabel_domainhash.c
net/netlabel/netlabel_mgmt.c
net/netlabel/netlabel_unlabeled.c
net/netlabel/netlabel_user.c

index 283ff4a527fd7d679a496f5645278342d018f1b4..fdc14a0d21af8fce47ced5d63fc8af46453851a5 100644 (file)
@@ -761,7 +761,7 @@ static struct genl_ops netlbl_cipsov4_ops[] = {
  * mechanism.  Returns zero on success, negative values on failure.
  *
  */
-int netlbl_cipsov4_genl_init(void)
+int __init netlbl_cipsov4_genl_init(void)
 {
        int ret_val, i;
 
index fd462313471cb294fb9d772f7d97d5567ce080f1..02c2f7c0b255f22253746f3a48734203fed41456 100644 (file)
@@ -171,7 +171,7 @@ static struct netlbl_dom_map *netlbl_domhsh_search_def(const char *domain)
  * values on error.
  *
  */
-int netlbl_domhsh_init(u32 size)
+int __init netlbl_domhsh_init(u32 size)
 {
        u32 iter;
        struct netlbl_domhsh_tbl *hsh_tbl;
index 05d98862fbd484ae3f9db6c0798f72a45d9c7fbb..22c19126780899b464b70f3f4e545b29f1e51f65 100644 (file)
@@ -588,7 +588,7 @@ static struct genl_ops netlbl_mgmt_genl_ops[] = {
  * mechanism.  Returns zero on success, negative values on failure.
  *
  */
-int netlbl_mgmt_genl_init(void)
+int __init netlbl_mgmt_genl_init(void)
 {
        int ret_val, i;
 
index f0f1322911de6d406d3e5506ee67b13c94eb46e9..4478f2f6079d929a8909bf13ccf1057796a46c3b 100644 (file)
@@ -1624,7 +1624,7 @@ static struct genl_ops netlbl_unlabel_genl_ops[] = {
  * mechanism.  Returns zero on success, negative values on failure.
  *
  */
-int netlbl_unlabel_genl_init(void)
+int __init netlbl_unlabel_genl_init(void)
 {
        int ret_val, i;
 
@@ -1661,7 +1661,7 @@ static struct notifier_block netlbl_unlhsh_netdev_notifier = {
  * non-zero values on error.
  *
  */
-int netlbl_unlabel_init(u32 size)
+int __init netlbl_unlabel_init(u32 size)
 {
        u32 iter;
        struct netlbl_unlhsh_tbl *hsh_tbl;
@@ -1765,7 +1765,7 @@ unlabel_getattr_nolabel:
  * and to send unlabeled network traffic by default.
  *
  */
-int netlbl_unlabel_defconf(void)
+int __init netlbl_unlabel_defconf(void)
 {
        int ret_val;
        struct netlbl_dom_map *entry;
index 023fc8fe840d16169f2cb90dd1a494122f460434..b17d4203806e2102812bcd4cbe4754340cde9395 100644 (file)
@@ -59,7 +59,7 @@
  * non-zero on failure.
  *
  */
-int netlbl_netlink_init(void)
+int __init netlbl_netlink_init(void)
 {
        int ret_val;