diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2007-03-14 19:42:11 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:25:51 -0400 |
commit | f4bc177f0ff0bf41b178452877762a9f0184d1a1 (patch) | |
tree | e95c3ea086c41f9c31a23134849f41282a90d629 /net/netfilter | |
parent | 8a2e89533a9b06bc960445dd6034eeab76117424 (diff) |
[NETFILTER]: nfnetlink: move EXPORT_SYMBOL declarations next to the exported symbol
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nfnetlink.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/net/netfilter/nfnetlink.c b/net/netfilter/nfnetlink.c index 6dd66546d168..9ba6aa486f35 100644 --- a/net/netfilter/nfnetlink.c +++ b/net/netfilter/nfnetlink.c | |||
@@ -78,6 +78,7 @@ int nfnetlink_subsys_register(struct nfnetlink_subsystem *n) | |||
78 | 78 | ||
79 | return 0; | 79 | return 0; |
80 | } | 80 | } |
81 | EXPORT_SYMBOL_GPL(nfnetlink_subsys_register); | ||
81 | 82 | ||
82 | int nfnetlink_subsys_unregister(struct nfnetlink_subsystem *n) | 83 | int nfnetlink_subsys_unregister(struct nfnetlink_subsystem *n) |
83 | { | 84 | { |
@@ -87,6 +88,7 @@ int nfnetlink_subsys_unregister(struct nfnetlink_subsystem *n) | |||
87 | 88 | ||
88 | return 0; | 89 | return 0; |
89 | } | 90 | } |
91 | EXPORT_SYMBOL_GPL(nfnetlink_subsys_unregister); | ||
90 | 92 | ||
91 | static inline struct nfnetlink_subsystem *nfnetlink_get_subsys(u_int16_t type) | 93 | static inline struct nfnetlink_subsystem *nfnetlink_get_subsys(u_int16_t type) |
92 | { | 94 | { |
@@ -121,6 +123,7 @@ void __nfa_fill(struct sk_buff *skb, int attrtype, int attrlen, | |||
121 | memcpy(NFA_DATA(nfa), data, attrlen); | 123 | memcpy(NFA_DATA(nfa), data, attrlen); |
122 | memset(NFA_DATA(nfa) + attrlen, 0, NFA_ALIGN(size) - size); | 124 | memset(NFA_DATA(nfa) + attrlen, 0, NFA_ALIGN(size) - size); |
123 | } | 125 | } |
126 | EXPORT_SYMBOL_GPL(__nfa_fill); | ||
124 | 127 | ||
125 | void nfattr_parse(struct nfattr *tb[], int maxattr, struct nfattr *nfa, int len) | 128 | void nfattr_parse(struct nfattr *tb[], int maxattr, struct nfattr *nfa, int len) |
126 | { | 129 | { |
@@ -133,6 +136,7 @@ void nfattr_parse(struct nfattr *tb[], int maxattr, struct nfattr *nfa, int len) | |||
133 | nfa = NFA_NEXT(nfa, len); | 136 | nfa = NFA_NEXT(nfa, len); |
134 | } | 137 | } |
135 | } | 138 | } |
139 | EXPORT_SYMBOL_GPL(nfattr_parse); | ||
136 | 140 | ||
137 | /** | 141 | /** |
138 | * nfnetlink_check_attributes - check and parse nfnetlink attributes | 142 | * nfnetlink_check_attributes - check and parse nfnetlink attributes |
@@ -194,11 +198,13 @@ int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, int echo) | |||
194 | 198 | ||
195 | return err; | 199 | return err; |
196 | } | 200 | } |
201 | EXPORT_SYMBOL_GPL(nfnetlink_send); | ||
197 | 202 | ||
198 | int nfnetlink_unicast(struct sk_buff *skb, u_int32_t pid, int flags) | 203 | int nfnetlink_unicast(struct sk_buff *skb, u_int32_t pid, int flags) |
199 | { | 204 | { |
200 | return netlink_unicast(nfnl, skb, pid, flags); | 205 | return netlink_unicast(nfnl, skb, pid, flags); |
201 | } | 206 | } |
207 | EXPORT_SYMBOL_GPL(nfnetlink_unicast); | ||
202 | 208 | ||
203 | /* Process one complete nfnetlink message. */ | 209 | /* Process one complete nfnetlink message. */ |
204 | static int nfnetlink_rcv_msg(struct sk_buff *skb, | 210 | static int nfnetlink_rcv_msg(struct sk_buff *skb, |
@@ -296,10 +302,3 @@ static int __init nfnetlink_init(void) | |||
296 | 302 | ||
297 | module_init(nfnetlink_init); | 303 | module_init(nfnetlink_init); |
298 | module_exit(nfnetlink_exit); | 304 | module_exit(nfnetlink_exit); |
299 | |||
300 | EXPORT_SYMBOL_GPL(nfnetlink_subsys_register); | ||
301 | EXPORT_SYMBOL_GPL(nfnetlink_subsys_unregister); | ||
302 | EXPORT_SYMBOL_GPL(nfnetlink_send); | ||
303 | EXPORT_SYMBOL_GPL(nfnetlink_unicast); | ||
304 | EXPORT_SYMBOL_GPL(nfattr_parse); | ||
305 | EXPORT_SYMBOL_GPL(__nfa_fill); | ||