diff options
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r-- | net/dccp/proto.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c index be0669242069..0b715ceb38b5 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c | |||
@@ -147,7 +147,7 @@ int dccp_ioctl(struct sock *sk, int cmd, unsigned long arg) | |||
147 | } | 147 | } |
148 | 148 | ||
149 | int dccp_setsockopt(struct sock *sk, int level, int optname, | 149 | int dccp_setsockopt(struct sock *sk, int level, int optname, |
150 | char *optval, int optlen) | 150 | char __user *optval, int optlen) |
151 | { | 151 | { |
152 | dccp_pr_debug("entry\n"); | 152 | dccp_pr_debug("entry\n"); |
153 | 153 | ||
@@ -158,7 +158,7 @@ int dccp_setsockopt(struct sock *sk, int level, int optname, | |||
158 | } | 158 | } |
159 | 159 | ||
160 | int dccp_getsockopt(struct sock *sk, int level, int optname, | 160 | int dccp_getsockopt(struct sock *sk, int level, int optname, |
161 | char *optval, int *optlen) | 161 | char __user *optval, int __user *optlen) |
162 | { | 162 | { |
163 | dccp_pr_debug("entry\n"); | 163 | dccp_pr_debug("entry\n"); |
164 | 164 | ||
@@ -439,7 +439,7 @@ void dccp_shutdown(struct sock *sk, int how) | |||
439 | dccp_pr_debug("entry\n"); | 439 | dccp_pr_debug("entry\n"); |
440 | } | 440 | } |
441 | 441 | ||
442 | struct proto_ops inet_dccp_ops = { | 442 | static struct proto_ops inet_dccp_ops = { |
443 | .family = PF_INET, | 443 | .family = PF_INET, |
444 | .owner = THIS_MODULE, | 444 | .owner = THIS_MODULE, |
445 | .release = inet_release, | 445 | .release = inet_release, |
@@ -539,9 +539,11 @@ static int thash_entries; | |||
539 | module_param(thash_entries, int, 0444); | 539 | module_param(thash_entries, int, 0444); |
540 | MODULE_PARM_DESC(thash_entries, "Number of ehash buckets"); | 540 | MODULE_PARM_DESC(thash_entries, "Number of ehash buckets"); |
541 | 541 | ||
542 | #ifdef CONFIG_IP_DCCP_DEBUG | ||
542 | int dccp_debug; | 543 | int dccp_debug; |
543 | module_param(dccp_debug, int, 0444); | 544 | module_param(dccp_debug, int, 0444); |
544 | MODULE_PARM_DESC(dccp_debug, "Enable debug messages"); | 545 | MODULE_PARM_DESC(dccp_debug, "Enable debug messages"); |
546 | #endif | ||
545 | 547 | ||
546 | static int __init dccp_init(void) | 548 | static int __init dccp_init(void) |
547 | { | 549 | { |