aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/dccp.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2005-08-13 21:42:25 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 18:59:59 -0400
commita1d3a35518779df0579dd9de0121354b49c68ddc (patch)
tree1d99d52393b5eb2d46e306cecbaf86547cafbc6a /net/dccp/dccp.h
parent8649b0d4166e6e80ffa298e75abd8f2afdd491a6 (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.h13
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);
231extern struct sk_buff *dccp_make_response(struct sock *sk, 231extern 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);
234extern struct sk_buff *dccp_make_reset(struct sock *sk,
235 struct dst_entry *dst,
236 enum dccp_reset_codes code);
234 237
235extern int dccp_connect(struct sock *sk); 238extern int dccp_connect(struct sock *sk);
236extern int dccp_disconnect(struct sock *sk, int flags); 239extern int dccp_disconnect(struct sock *sk, int flags);
237extern int dccp_getsockopt(struct sock *sk, int level, int optname, 240extern int dccp_getsockopt(struct sock *sk, int level, int optname,
238 char *optval, int *optlen); 241 char __user *optval, int __user *optlen);
242extern int dccp_setsockopt(struct sock *sk, int level, int optname,
243 char __user *optval, int optlen);
239extern int dccp_ioctl(struct sock *sk, int cmd, unsigned long arg); 244extern int dccp_ioctl(struct sock *sk, int cmd, unsigned long arg);
240extern int dccp_sendmsg(struct kiocb *iocb, struct sock *sk, 245extern int dccp_sendmsg(struct kiocb *iocb, struct sock *sk,
241 struct msghdr *msg, size_t size); 246 struct msghdr *msg, size_t size);
242extern int dccp_recvmsg(struct kiocb *iocb, struct sock *sk, 247extern 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);
245extern int dccp_setsockopt(struct sock *sk, int level, int optname,
246 char *optval, int optlen);
247extern void dccp_shutdown(struct sock *sk, int how); 250extern void dccp_shutdown(struct sock *sk, int how);
248 251
249extern int dccp_v4_checksum(const struct sk_buff *skb, 252extern 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
422extern struct dccp_ackpkts *dccp_ackpkts_alloc(unsigned int len, int priority); 425extern struct dccp_ackpkts *
426 dccp_ackpkts_alloc(unsigned int len,
427 const unsigned int __nocast priority);
423extern void dccp_ackpkts_free(struct dccp_ackpkts *ap); 428extern void dccp_ackpkts_free(struct dccp_ackpkts *ap);
424extern int dccp_ackpkts_add(struct dccp_ackpkts *ap, u64 ackno, u8 state); 429extern int dccp_ackpkts_add(struct dccp_ackpkts *ap, u64 ackno, u8 state);
425extern void dccp_ackpkts_check_rcv_ackno(struct dccp_ackpkts *ap, 430extern void dccp_ackpkts_check_rcv_ackno(struct dccp_ackpkts *ap,