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 cd08244aa10c..c96c767b1f74 100644 --- a/net/decnet/dn_nsp_out.c +++ b/net/decnet/dn_nsp_out.c | |||
@@ -117,8 +117,7 @@ try_again: | |||
117 | * The eventual aim is for each socket to have a cached header size | 117 | * The eventual aim is for each socket to have a cached header size |
118 | * for its outgoing packets, and to set hdr from this when sk != NULL. | 118 | * for its outgoing packets, and to set hdr from this when sk != NULL. |
119 | */ | 119 | */ |
120 | struct sk_buff *dn_alloc_skb(struct sock *sk, int size, | 120 | struct sk_buff *dn_alloc_skb(struct sock *sk, int size, gfp_t pri) |
121 | unsigned int __nocast pri) | ||
122 | { | 121 | { |
123 | struct sk_buff *skb; | 122 | struct sk_buff *skb; |
124 | int hdr = 64; | 123 | int hdr = 64; |
@@ -212,7 +211,7 @@ static void dn_nsp_rtt(struct sock *sk, long rtt) | |||
212 | * Returns: The number of times the packet has been sent previously | 211 | * Returns: The number of times the packet has been sent previously |
213 | */ | 212 | */ |
214 | static inline unsigned dn_nsp_clone_and_send(struct sk_buff *skb, | 213 | static inline unsigned dn_nsp_clone_and_send(struct sk_buff *skb, |
215 | unsigned int __nocast gfp) | 214 | gfp_t gfp) |
216 | { | 215 | { |
217 | struct dn_skb_cb *cb = DN_SKB_CB(skb); | 216 | struct dn_skb_cb *cb = DN_SKB_CB(skb); |
218 | struct sk_buff *skb2; | 217 | struct sk_buff *skb2; |
@@ -353,7 +352,7 @@ static unsigned short *dn_nsp_mk_data_header(struct sock *sk, struct sk_buff *sk | |||
353 | } | 352 | } |
354 | 353 | ||
355 | void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb, | 354 | void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb, |
356 | unsigned int __nocast gfp, int oth) | 355 | gfp_t gfp, int oth) |
357 | { | 356 | { |
358 | struct dn_scp *scp = DN_SK(sk); | 357 | struct dn_scp *scp = DN_SK(sk); |
359 | struct dn_skb_cb *cb = DN_SKB_CB(skb); | 358 | struct dn_skb_cb *cb = DN_SKB_CB(skb); |
@@ -520,7 +519,7 @@ static int dn_nsp_retrans_conn_conf(struct sock *sk) | |||
520 | return 0; | 519 | return 0; |
521 | } | 520 | } |
522 | 521 | ||
523 | void dn_send_conn_conf(struct sock *sk, unsigned int __nocast gfp) | 522 | void dn_send_conn_conf(struct sock *sk, gfp_t gfp) |
524 | { | 523 | { |
525 | struct dn_scp *scp = DN_SK(sk); | 524 | struct dn_scp *scp = DN_SK(sk); |
526 | struct sk_buff *skb = NULL; | 525 | struct sk_buff *skb = NULL; |
@@ -552,7 +551,7 @@ void dn_send_conn_conf(struct sock *sk, unsigned int __nocast gfp) | |||
552 | 551 | ||
553 | 552 | ||
554 | static __inline__ void dn_nsp_do_disc(struct sock *sk, unsigned char msgflg, | 553 | static __inline__ void dn_nsp_do_disc(struct sock *sk, unsigned char msgflg, |
555 | unsigned short reason, unsigned int __nocast gfp, | 554 | unsigned short reason, gfp_t gfp, |
556 | struct dst_entry *dst, | 555 | struct dst_entry *dst, |
557 | int ddl, unsigned char *dd, __u16 rem, __u16 loc) | 556 | int ddl, unsigned char *dd, __u16 rem, __u16 loc) |
558 | { | 557 | { |
@@ -595,7 +594,7 @@ static __inline__ void dn_nsp_do_disc(struct sock *sk, unsigned char msgflg, | |||
595 | 594 | ||
596 | 595 | ||
597 | void dn_nsp_send_disc(struct sock *sk, unsigned char msgflg, | 596 | void dn_nsp_send_disc(struct sock *sk, unsigned char msgflg, |
598 | unsigned short reason, unsigned int __nocast gfp) | 597 | unsigned short reason, gfp_t gfp) |
599 | { | 598 | { |
600 | struct dn_scp *scp = DN_SK(sk); | 599 | struct dn_scp *scp = DN_SK(sk); |
601 | int ddl = 0; | 600 | int ddl = 0; |
@@ -616,7 +615,7 @@ void dn_nsp_return_disc(struct sk_buff *skb, unsigned char msgflg, | |||
616 | { | 615 | { |
617 | struct dn_skb_cb *cb = DN_SKB_CB(skb); | 616 | struct dn_skb_cb *cb = DN_SKB_CB(skb); |
618 | int ddl = 0; | 617 | int ddl = 0; |
619 | unsigned int __nocast gfp = GFP_ATOMIC; | 618 | gfp_t gfp = GFP_ATOMIC; |
620 | 619 | ||
621 | dn_nsp_do_disc(NULL, msgflg, reason, gfp, skb->dst, ddl, | 620 | dn_nsp_do_disc(NULL, msgflg, reason, gfp, skb->dst, ddl, |
622 | NULL, cb->src_port, cb->dst_port); | 621 | NULL, cb->src_port, cb->dst_port); |
@@ -628,7 +627,7 @@ void dn_nsp_send_link(struct sock *sk, unsigned char lsflags, char fcval) | |||
628 | struct dn_scp *scp = DN_SK(sk); | 627 | struct dn_scp *scp = DN_SK(sk); |
629 | struct sk_buff *skb; | 628 | struct sk_buff *skb; |
630 | unsigned char *ptr; | 629 | unsigned char *ptr; |
631 | unsigned int __nocast gfp = GFP_ATOMIC; | 630 | gfp_t gfp = GFP_ATOMIC; |
632 | 631 | ||
633 | if ((skb = dn_alloc_skb(sk, DN_MAX_NSP_DATA_HEADER + 2, gfp)) == NULL) | 632 | if ((skb = dn_alloc_skb(sk, DN_MAX_NSP_DATA_HEADER + 2, gfp)) == NULL) |
634 | return; | 633 | return; |
@@ -663,8 +662,7 @@ void dn_nsp_send_conninit(struct sock *sk, unsigned char msgflg) | |||
663 | unsigned char menuver; | 662 | unsigned char menuver; |
664 | struct dn_skb_cb *cb; | 663 | struct dn_skb_cb *cb; |
665 | unsigned char type = 1; | 664 | unsigned char type = 1; |
666 | unsigned int __nocast allocation = | 665 | gfp_t allocation = (msgflg == NSP_CI) ? sk->sk_allocation : GFP_ATOMIC; |
667 | (msgflg == NSP_CI) ? sk->sk_allocation : GFP_ATOMIC; | ||
668 | struct sk_buff *skb = dn_alloc_skb(sk, 200, allocation); | 666 | struct sk_buff *skb = dn_alloc_skb(sk, 200, allocation); |
669 | 667 | ||
670 | if (!skb) | 668 | if (!skb) |