diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-08-13 21:42:25 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:59:59 -0400 |
commit | a1d3a35518779df0579dd9de0121354b49c68ddc (patch) | |
tree | 1d99d52393b5eb2d46e306cecbaf86547cafbc6a /net/dccp/proto.c | |
parent | 8649b0d4166e6e80ffa298e75abd8f2afdd491a6 (diff) |
[DCCP]: Fix sparse warnings
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 | { |