[DECNET]: fix sparse gfp nocast warnings
Fix implicit nocast warnings in decnet code: net/decnet/af_decnet.c:458:40: warning: implicit cast to nocast type net/decnet/dn_nsp_out.c:125:35: warning: implicit cast to nocast type net/decnet/dn_nsp_out.c:219:29: 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:
committed by
David S. Miller
parent
17b6988563
commit
f4a19a56e3
@@ -452,7 +452,8 @@ static struct proto dn_proto = {
|
||||
.obj_size = sizeof(struct dn_sock),
|
||||
};
|
||||
|
||||
static struct sock *dn_alloc_sock(struct socket *sock, int gfp)
|
||||
static struct sock *dn_alloc_sock(struct socket *sock,
|
||||
unsigned int __nocast gfp)
|
||||
{
|
||||
struct dn_scp *scp;
|
||||
struct sock *sk = sk_alloc(PF_DECnet, gfp, &dn_proto, 1);
|
||||
@@ -804,7 +805,8 @@ static int dn_auto_bind(struct socket *sock)
|
||||
return rv;
|
||||
}
|
||||
|
||||
static int dn_confirm_accept(struct sock *sk, long *timeo, int allocation)
|
||||
static int dn_confirm_accept(struct sock *sk, long *timeo,
|
||||
unsigned int __nocast allocation)
|
||||
{
|
||||
struct dn_scp *scp = DN_SK(sk);
|
||||
DEFINE_WAIT(wait);
|
||||
|
Reference in New Issue
Block a user