[AF_KEY]: fix sparse gfp nocast warnings
Fix implicit nocast warnings in net/key code: net/key/af_key.c:195:27: warning: implicit cast to nocast type net/key/af_key.c:1439:28: warning: implicit cast to nocast type Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c6f4fafccf
commit
00fa023345
1 changed files with 4 additions and 3 deletions
|
@ -185,7 +185,7 @@ static int pfkey_release(struct socket *sock)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int pfkey_broadcast_one(struct sk_buff *skb, struct sk_buff **skb2,
|
static int pfkey_broadcast_one(struct sk_buff *skb, struct sk_buff **skb2,
|
||||||
int allocation, struct sock *sk)
|
unsigned int __nocast allocation, struct sock *sk)
|
||||||
{
|
{
|
||||||
int err = -ENOBUFS;
|
int err = -ENOBUFS;
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ static int pfkey_broadcast_one(struct sk_buff *skb, struct sk_buff **skb2,
|
||||||
#define BROADCAST_ONE 1
|
#define BROADCAST_ONE 1
|
||||||
#define BROADCAST_REGISTERED 2
|
#define BROADCAST_REGISTERED 2
|
||||||
#define BROADCAST_PROMISC_ONLY 4
|
#define BROADCAST_PROMISC_ONLY 4
|
||||||
static int pfkey_broadcast(struct sk_buff *skb, int allocation,
|
static int pfkey_broadcast(struct sk_buff *skb, unsigned int __nocast allocation,
|
||||||
int broadcast_flags, struct sock *one_sk)
|
int broadcast_flags, struct sock *one_sk)
|
||||||
{
|
{
|
||||||
struct sock *sk;
|
struct sock *sk;
|
||||||
|
@ -1416,7 +1416,8 @@ static int pfkey_get(struct sock *sk, struct sk_buff *skb, struct sadb_msg *hdr,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct sk_buff *compose_sadb_supported(struct sadb_msg *orig, int allocation)
|
static struct sk_buff *compose_sadb_supported(struct sadb_msg *orig,
|
||||||
|
unsigned int __nocast allocation)
|
||||||
{
|
{
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
struct sadb_msg *hdr;
|
struct sadb_msg *hdr;
|
||||||
|
|
Loading…
Reference in a new issue