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/dccp.h | |
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/dccp.h')
-rw-r--r-- | net/dccp/dccp.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index 270f19439964..148e8a65a10c 100644 --- a/net/dccp/dccp.h +++ b/net/dccp/dccp.h | |||
@@ -231,19 +231,22 @@ extern void dccp_close(struct sock *sk, long timeout); | |||
231 | extern struct sk_buff *dccp_make_response(struct sock *sk, | 231 | extern struct sk_buff *dccp_make_response(struct sock *sk, |
232 | struct dst_entry *dst, | 232 | struct dst_entry *dst, |
233 | struct request_sock *req); | 233 | struct request_sock *req); |
234 | extern struct sk_buff *dccp_make_reset(struct sock *sk, | ||
235 | struct dst_entry *dst, | ||
236 | enum dccp_reset_codes code); | ||
234 | 237 | ||
235 | extern int dccp_connect(struct sock *sk); | 238 | extern int dccp_connect(struct sock *sk); |
236 | extern int dccp_disconnect(struct sock *sk, int flags); | 239 | extern int dccp_disconnect(struct sock *sk, int flags); |
237 | extern int dccp_getsockopt(struct sock *sk, int level, int optname, | 240 | extern int dccp_getsockopt(struct sock *sk, int level, int optname, |
238 | char *optval, int *optlen); | 241 | char __user *optval, int __user *optlen); |
242 | extern int dccp_setsockopt(struct sock *sk, int level, int optname, | ||
243 | char __user *optval, int optlen); | ||
239 | extern int dccp_ioctl(struct sock *sk, int cmd, unsigned long arg); | 244 | extern int dccp_ioctl(struct sock *sk, int cmd, unsigned long arg); |
240 | extern int dccp_sendmsg(struct kiocb *iocb, struct sock *sk, | 245 | extern int dccp_sendmsg(struct kiocb *iocb, struct sock *sk, |
241 | struct msghdr *msg, size_t size); | 246 | struct msghdr *msg, size_t size); |
242 | extern int dccp_recvmsg(struct kiocb *iocb, struct sock *sk, | 247 | extern int dccp_recvmsg(struct kiocb *iocb, struct sock *sk, |
243 | struct msghdr *msg, size_t len, int nonblock, | 248 | struct msghdr *msg, size_t len, int nonblock, |
244 | int flags, int *addr_len); | 249 | int flags, int *addr_len); |
245 | extern int dccp_setsockopt(struct sock *sk, int level, int optname, | ||
246 | char *optval, int optlen); | ||
247 | extern void dccp_shutdown(struct sock *sk, int how); | 250 | extern void dccp_shutdown(struct sock *sk, int how); |
248 | 251 | ||
249 | extern int dccp_v4_checksum(const struct sk_buff *skb, | 252 | extern int dccp_v4_checksum(const struct sk_buff *skb, |
@@ -419,7 +422,9 @@ struct dccp_ackpkts { | |||
419 | u8 dccpap_buf[0]; | 422 | u8 dccpap_buf[0]; |
420 | }; | 423 | }; |
421 | 424 | ||
422 | extern struct dccp_ackpkts *dccp_ackpkts_alloc(unsigned int len, int priority); | 425 | extern struct dccp_ackpkts * |
426 | dccp_ackpkts_alloc(unsigned int len, | ||
427 | const unsigned int __nocast priority); | ||
423 | extern void dccp_ackpkts_free(struct dccp_ackpkts *ap); | 428 | extern void dccp_ackpkts_free(struct dccp_ackpkts *ap); |
424 | extern int dccp_ackpkts_add(struct dccp_ackpkts *ap, u64 ackno, u8 state); | 429 | extern int dccp_ackpkts_add(struct dccp_ackpkts *ap, u64 ackno, u8 state); |
425 | extern void dccp_ackpkts_check_rcv_ackno(struct dccp_ackpkts *ap, | 430 | extern void dccp_ackpkts_check_rcv_ackno(struct dccp_ackpkts *ap, |