Skip to content

Commit

Permalink
[NETLABEL]: Move some initialization code into __init section.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
xemul authored and davem330 committed Feb 18, 2008
1 parent 227c43c commit 05705e4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion net/netlabel/netlabel_cipso_v4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion net/netlabel/netlabel_domainhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion net/netlabel/netlabel_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 3 additions & 3 deletions net/netlabel/netlabel_unlabeled.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -1765,7 +1765,7 @@ int netlbl_unlabel_getattr(const struct sk_buff *skb,
* 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;
Expand Down
2 changes: 1 addition & 1 deletion net/netlabel/netlabel_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
* non-zero on failure.
*
*/
int netlbl_netlink_init(void)
int __init netlbl_netlink_init(void)
{
int ret_val;

Expand Down

0 comments on commit 05705e4

Please sign in to comment.