Skip to content

Commit

Permalink
genetlink: cleanup code according to CodingStyle
Browse files Browse the repository at this point in the history
If the function is exported, the EXPORT* macro for it should follow immediately
after the closing function brace line.

Signed-off-by: Changli Gao <[email protected]>
----
 net/netlink/genetlink.c |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
xiaosuo authored and davem330 committed Jul 27, 2010
1 parent f78f09f commit 416c2f9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions net/netlink/genetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ int genl_register_ops(struct genl_family *family, struct genl_ops *ops)
errout:
return err;
}
EXPORT_SYMBOL(genl_register_ops);

/**
* genl_unregister_ops - unregister generic netlink operations
Expand Down Expand Up @@ -337,6 +338,7 @@ int genl_unregister_ops(struct genl_family *family, struct genl_ops *ops)

return -ENOENT;
}
EXPORT_SYMBOL(genl_unregister_ops);

/**
* genl_register_family - register a generic netlink family
Expand Down Expand Up @@ -405,6 +407,7 @@ int genl_register_family(struct genl_family *family)
errout:
return err;
}
EXPORT_SYMBOL(genl_register_family);

/**
* genl_register_family_with_ops - register a generic netlink family
Expand Down Expand Up @@ -485,6 +488,7 @@ int genl_unregister_family(struct genl_family *family)

return -ENOENT;
}
EXPORT_SYMBOL(genl_unregister_family);

static int genl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
{
Expand Down Expand Up @@ -899,11 +903,6 @@ static int __init genl_init(void)

subsys_initcall(genl_init);

EXPORT_SYMBOL(genl_register_ops);
EXPORT_SYMBOL(genl_unregister_ops);
EXPORT_SYMBOL(genl_register_family);
EXPORT_SYMBOL(genl_unregister_family);

static int genlmsg_mcast(struct sk_buff *skb, u32 pid, unsigned long group,
gfp_t flags)
{
Expand Down

0 comments on commit 416c2f9

Please sign in to comment.