diff options
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r-- | net/dccp/proto.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c index 6d7aef9647de..8a6d0a83047c 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c | |||
@@ -516,18 +516,19 @@ int dccp_setsockopt(struct sock *sk, int level, int optname, | |||
516 | optlen); | 516 | optlen); |
517 | return do_dccp_setsockopt(sk, level, optname, optval, optlen); | 517 | return do_dccp_setsockopt(sk, level, optname, optval, optlen); |
518 | } | 518 | } |
519 | |||
519 | EXPORT_SYMBOL_GPL(dccp_setsockopt); | 520 | EXPORT_SYMBOL_GPL(dccp_setsockopt); |
520 | 521 | ||
521 | #ifdef CONFIG_COMPAT | 522 | #ifdef CONFIG_COMPAT |
522 | int compat_dccp_setsockopt(struct sock *sk, int level, int optname, | 523 | int compat_dccp_setsockopt(struct sock *sk, int level, int optname, |
523 | char __user *optval, int optlen) | 524 | char __user *optval, int optlen) |
524 | { | 525 | { |
525 | if (level != SOL_DCCP) | 526 | if (level != SOL_DCCP) |
526 | return inet_csk_compat_setsockopt(sk, level, optname, | 527 | return inet_csk_compat_setsockopt(sk, level, optname, |
527 | optval, optlen); | 528 | optval, optlen); |
528 | |||
529 | return do_dccp_setsockopt(sk, level, optname, optval, optlen); | 529 | return do_dccp_setsockopt(sk, level, optname, optval, optlen); |
530 | } | 530 | } |
531 | |||
531 | EXPORT_SYMBOL_GPL(compat_dccp_setsockopt); | 532 | EXPORT_SYMBOL_GPL(compat_dccp_setsockopt); |
532 | #endif | 533 | #endif |
533 | 534 | ||
@@ -609,17 +610,19 @@ int dccp_getsockopt(struct sock *sk, int level, int optname, | |||
609 | optlen); | 610 | optlen); |
610 | return do_dccp_getsockopt(sk, level, optname, optval, optlen); | 611 | return do_dccp_getsockopt(sk, level, optname, optval, optlen); |
611 | } | 612 | } |
613 | |||
612 | EXPORT_SYMBOL_GPL(dccp_getsockopt); | 614 | EXPORT_SYMBOL_GPL(dccp_getsockopt); |
613 | 615 | ||
614 | #ifdef CONFIG_COMPAT | 616 | #ifdef CONFIG_COMPAT |
615 | int compat_dccp_getsockopt(struct sock *sk, int level, int optname, | 617 | int compat_dccp_getsockopt(struct sock *sk, int level, int optname, |
616 | char __user *optval, int __user *optlen) | 618 | char __user *optval, int __user *optlen) |
617 | { | 619 | { |
618 | if (level != SOL_DCCP) | 620 | if (level != SOL_DCCP) |
619 | return inet_csk_compat_getsockopt(sk, level, optname, | 621 | return inet_csk_compat_getsockopt(sk, level, optname, |
620 | optval, optlen); | 622 | optval, optlen); |
621 | return do_dccp_getsockopt(sk, level, optname, optval, optlen); | 623 | return do_dccp_getsockopt(sk, level, optname, optval, optlen); |
622 | } | 624 | } |
625 | |||
623 | EXPORT_SYMBOL_GPL(compat_dccp_getsockopt); | 626 | EXPORT_SYMBOL_GPL(compat_dccp_getsockopt); |
624 | #endif | 627 | #endif |
625 | 628 | ||