Commit 4c0abe61 authored by Stephen Hemminger's avatar Stephen Hemminger

[NETLINK]: Use size_t for size in {send,recv}msg.

parent 322d620f
......@@ -2655,7 +2655,7 @@ static int pfkey_send_new_mapping(struct xfrm_state *x, xfrm_address_t *ipaddr,
}
static int pfkey_sendmsg(struct kiocb *kiocb,
struct socket *sock, struct msghdr *msg, int len)
struct socket *sock, struct msghdr *msg, size_t len)
{
struct sock *sk = sock->sk;
struct sk_buff *skb = NULL;
......@@ -2697,7 +2697,7 @@ static int pfkey_sendmsg(struct kiocb *kiocb,
}
static int pfkey_recvmsg(struct kiocb *kiocb,
struct socket *sock, struct msghdr *msg, int len,
struct socket *sock, struct msghdr *msg, size_t len,
int flags)
{
struct sock *sk = sock->sk;
......
......@@ -601,7 +601,7 @@ static inline void netlink_rcv_wake(struct sock *sk)
}
static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock,
struct msghdr *msg, int len)
struct msghdr *msg, size_t len)
{
struct sock_iocb *siocb = kiocb_to_siocb(kiocb);
struct sock *sk = sock->sk;
......@@ -641,7 +641,7 @@ static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock,
}
err = -EMSGSIZE;
if ((unsigned)len > sk->sk_sndbuf - 32)
if (len > sk->sk_sndbuf - 32)
goto out;
err = -ENOBUFS;
skb = alloc_skb(len, GFP_KERNEL);
......@@ -683,7 +683,7 @@ static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock,
}
static int netlink_recvmsg(struct kiocb *kiocb, struct socket *sock,
struct msghdr *msg, int len,
struct msghdr *msg, size_t len,
int flags)
{
struct sock_iocb *siocb = kiocb_to_siocb(kiocb);
......@@ -691,7 +691,7 @@ static int netlink_recvmsg(struct kiocb *kiocb, struct socket *sock,
struct sock *sk = sock->sk;
struct netlink_opt *nlk = nlk_sk(sk);
int noblock = flags&MSG_DONTWAIT;
int copied;
size_t copied;
struct sk_buff *skb;
int err;
......
......@@ -284,7 +284,7 @@ static int packet_rcv_spkt(struct sk_buff *skb, struct net_device *dev, struct
*/
static int packet_sendmsg_spkt(struct kiocb *iocb, struct socket *sock,
struct msghdr *msg, int len)
struct msghdr *msg, size_t len)
{
struct sock *sk = sock->sk;
struct sockaddr_pkt *saddr=(struct sockaddr_pkt *)msg->msg_name;
......@@ -659,7 +659,7 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev, struct pack
static int packet_sendmsg(struct kiocb *iocb, struct socket *sock,
struct msghdr *msg, int len)
struct msghdr *msg, size_t len)
{
struct sock *sk = sock->sk;
struct sockaddr_ll *saddr=(struct sockaddr_ll *)msg->msg_name;
......@@ -1007,7 +1007,7 @@ static int packet_create(struct socket *sock, int protocol)
*/
static int packet_recvmsg(struct kiocb *iocb, struct socket *sock,
struct msghdr *msg, int len, int flags)
struct msghdr *msg, size_t len, int flags)
{
struct sock *sk = sock->sk;
struct sk_buff *skb;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment