diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-04-10 04:33:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-10 04:33:47 -0400 |
commit | b715631fad3ed320b85d386a84a6fb0b3f86b0b9 (patch) | |
tree | 3f7f84419a7ab76f78516abbbba929e1c19c2f7c /net/core | |
parent | d9c58f30b08bfe1e689537af5bc855a76d0fae25 (diff) |
socket: sk_filter minor cleanups
Some minor style cleanups:
* Move __KERNEL__ definitions to one place in filter.h
* Use const for sk_filter_len
* Line wrapping
* Put EXPORT_SYMBOL next to function definition
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/filter.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index e0a06942c025..85a5febab567 100644 --- a/net/core/filter.c +++ b/net/core/filter.c | |||
@@ -275,6 +275,7 @@ load_b: | |||
275 | 275 | ||
276 | return 0; | 276 | return 0; |
277 | } | 277 | } |
278 | EXPORT_SYMBOL(sk_run_filter); | ||
278 | 279 | ||
279 | /** | 280 | /** |
280 | * sk_chk_filter - verify socket filter code | 281 | * sk_chk_filter - verify socket filter code |
@@ -385,6 +386,7 @@ int sk_chk_filter(struct sock_filter *filter, int flen) | |||
385 | 386 | ||
386 | return (BPF_CLASS(filter[flen - 1].code) == BPF_RET) ? 0 : -EINVAL; | 387 | return (BPF_CLASS(filter[flen - 1].code) == BPF_RET) ? 0 : -EINVAL; |
387 | } | 388 | } |
389 | EXPORT_SYMBOL(sk_chk_filter); | ||
388 | 390 | ||
389 | /** | 391 | /** |
390 | * sk_filter_rcu_release: Release a socket filter by rcu_head | 392 | * sk_filter_rcu_release: Release a socket filter by rcu_head |
@@ -467,6 +469,3 @@ int sk_detach_filter(struct sock *sk) | |||
467 | rcu_read_unlock_bh(); | 469 | rcu_read_unlock_bh(); |
468 | return ret; | 470 | return ret; |
469 | } | 471 | } |
470 | |||
471 | EXPORT_SYMBOL(sk_chk_filter); | ||
472 | EXPORT_SYMBOL(sk_run_filter); | ||