]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/decnet/af_decnet.c
[DECNET]: fix sparse gfp nocast warnings
[karo-tx-linux.git] / net / decnet / af_decnet.c
index 348f36b529f741e2f82005f69e86a1d353a63761..34d4128d56d541a60c657f36c6cd43054b929d9d 100644 (file)
@@ -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);