diff options
Diffstat (limited to 'net/decnet/dn_nsp_out.c')
| -rw-r--r-- | net/decnet/dn_nsp_out.c | 20 | 
1 files changed, 9 insertions, 11 deletions
diff --git a/net/decnet/dn_nsp_out.c b/net/decnet/dn_nsp_out.c index cd08244aa10..c96c767b1f7 100644 --- a/net/decnet/dn_nsp_out.c +++ b/net/decnet/dn_nsp_out.c @@ -117,8 +117,7 @@ try_again:   * The eventual aim is for each socket to have a cached header size   * for its outgoing packets, and to set hdr from this when sk != NULL.   */ -struct sk_buff *dn_alloc_skb(struct sock *sk, int size, -			     unsigned int __nocast pri) +struct sk_buff *dn_alloc_skb(struct sock *sk, int size, gfp_t pri)  {  	struct sk_buff *skb;  	int hdr = 64; @@ -212,7 +211,7 @@ static void dn_nsp_rtt(struct sock *sk, long rtt)   * Returns: The number of times the packet has been sent previously   */  static inline unsigned dn_nsp_clone_and_send(struct sk_buff *skb, -					     unsigned int __nocast gfp) +					     gfp_t gfp)  {  	struct dn_skb_cb *cb = DN_SKB_CB(skb);  	struct sk_buff *skb2; @@ -353,7 +352,7 @@ static unsigned short *dn_nsp_mk_data_header(struct sock *sk, struct sk_buff *sk  }  void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb, -			unsigned int __nocast gfp, int oth) +			gfp_t gfp, int oth)  {  	struct dn_scp *scp = DN_SK(sk);  	struct dn_skb_cb *cb = DN_SKB_CB(skb); @@ -520,7 +519,7 @@ static int dn_nsp_retrans_conn_conf(struct sock *sk)  	return 0;  } -void dn_send_conn_conf(struct sock *sk, unsigned int __nocast gfp) +void dn_send_conn_conf(struct sock *sk, gfp_t gfp)  {  	struct dn_scp *scp = DN_SK(sk);  	struct sk_buff *skb = NULL; @@ -552,7 +551,7 @@ void dn_send_conn_conf(struct sock *sk, unsigned int __nocast gfp)  static __inline__ void dn_nsp_do_disc(struct sock *sk, unsigned char msgflg,  -			unsigned short reason, unsigned int __nocast gfp, +			unsigned short reason, gfp_t gfp,  			struct dst_entry *dst,  			int ddl, unsigned char *dd, __u16 rem, __u16 loc)  { @@ -595,7 +594,7 @@ static __inline__ void dn_nsp_do_disc(struct sock *sk, unsigned char msgflg,  void dn_nsp_send_disc(struct sock *sk, unsigned char msgflg,  -			unsigned short reason, unsigned int __nocast gfp) +			unsigned short reason, gfp_t gfp)  {  	struct dn_scp *scp = DN_SK(sk);  	int ddl = 0; @@ -616,7 +615,7 @@ void dn_nsp_return_disc(struct sk_buff *skb, unsigned char msgflg,  {  	struct dn_skb_cb *cb = DN_SKB_CB(skb);  	int ddl = 0; -	unsigned int __nocast gfp = GFP_ATOMIC; +	gfp_t gfp = GFP_ATOMIC;  	dn_nsp_do_disc(NULL, msgflg, reason, gfp, skb->dst, ddl,   			NULL, cb->src_port, cb->dst_port); @@ -628,7 +627,7 @@ void dn_nsp_send_link(struct sock *sk, unsigned char lsflags, char fcval)  	struct dn_scp *scp = DN_SK(sk);  	struct sk_buff *skb;  	unsigned char *ptr; -	unsigned int __nocast gfp = GFP_ATOMIC; +	gfp_t gfp = GFP_ATOMIC;  	if ((skb = dn_alloc_skb(sk, DN_MAX_NSP_DATA_HEADER + 2, gfp)) == NULL)  		return; @@ -663,8 +662,7 @@ void dn_nsp_send_conninit(struct sock *sk, unsigned char msgflg)  	unsigned char menuver;  	struct dn_skb_cb *cb;  	unsigned char type = 1; -	unsigned int __nocast allocation = -			(msgflg == NSP_CI) ? sk->sk_allocation : GFP_ATOMIC; +	gfp_t allocation = (msgflg == NSP_CI) ? sk->sk_allocation : GFP_ATOMIC;  	struct sk_buff *skb = dn_alloc_skb(sk, 200, allocation);  	if (!skb)  |