···69 * a new message.70 *71 */72-int cn_netlink_send(struct cn_msg *msg, u32 __group, int gfp_mask)073{74 struct cn_callback_entry *__cbq;75 unsigned int size;
···69 * a new message.70 *71 */72+int cn_netlink_send(struct cn_msg *msg, u32 __group,73+ unsigned int __nocast gfp_mask)74{75 struct cn_callback_entry *__cbq;76 unsigned int size;
+3-2
drivers/net/bonding/bond_main.c
···1289/*1290 * Copy all the Multicast addresses from src to the bonding device dst1291 */1292-static int bond_mc_list_copy(struct dev_mc_list *mc_list, struct bonding *bond, int gpf_flag)01293{1294 struct dev_mc_list *dmi, *new_dmi;12951296 for (dmi = mc_list; dmi; dmi = dmi->next) {1297- new_dmi = kmalloc(sizeof(struct dev_mc_list), gpf_flag);12981299 if (!new_dmi) {1300 /* FIXME: Potential memory leak !!! */
···1289/*1290 * Copy all the Multicast addresses from src to the bonding device dst1291 */1292+static int bond_mc_list_copy(struct dev_mc_list *mc_list, struct bonding *bond,1293+ unsigned int __nocast gfp_flag)1294{1295 struct dev_mc_list *dmi, *new_dmi;12961297 for (dmi = mc_list; dmi; dmi = dmi->next) {1298+ new_dmi = kmalloc(sizeof(struct dev_mc_list), gfp_flag);12991300 if (!new_dmi) {1301 /* FIXME: Potential memory leak !!! */
+1-1
include/linux/atmdev.h
···457458int atm_charge(struct atm_vcc *vcc,int truesize);459struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size,460- int gfp_flags);461int atm_pcr_goal(struct atm_trafprm *tp);462463void vcc_release_async(struct atm_vcc *vcc, int reply);
···19extern void dn_nsp_send_oth_ack(struct sock *sk);20extern void dn_nsp_delayed_ack(struct sock *sk);21extern void dn_send_conn_ack(struct sock *sk);22-extern void dn_send_conn_conf(struct sock *sk, int gfp);23extern void dn_nsp_send_disc(struct sock *sk, unsigned char type, 24- unsigned short reason, int gfp);25extern void dn_nsp_return_disc(struct sk_buff *skb, unsigned char type,26 unsigned short reason);27extern void dn_nsp_send_link(struct sock *sk, unsigned char lsflags, char fcval);···2930extern void dn_nsp_output(struct sock *sk);31extern int dn_nsp_check_xmit_queue(struct sock *sk, struct sk_buff *skb, struct sk_buff_head *q, unsigned short acknum);32-extern void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb, int gfp, int oob);33extern unsigned long dn_nsp_persist(struct sock *sk);34extern int dn_nsp_xmit_timeout(struct sock *sk);3536extern int dn_nsp_rx(struct sk_buff *);37extern int dn_nsp_backlog_rcv(struct sock *sk, struct sk_buff *skb);3839-extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, int pri);40extern struct sk_buff *dn_alloc_send_skb(struct sock *sk, size_t *size, int noblock, long timeo, int *err);4142#define NSP_REASON_OK 0 /* No error */
···19extern void dn_nsp_send_oth_ack(struct sock *sk);20extern void dn_nsp_delayed_ack(struct sock *sk);21extern void dn_send_conn_ack(struct sock *sk);22+extern void dn_send_conn_conf(struct sock *sk, unsigned int __nocast gfp);23extern void dn_nsp_send_disc(struct sock *sk, unsigned char type, 24+ unsigned short reason, unsigned int __nocast gfp);25extern void dn_nsp_return_disc(struct sk_buff *skb, unsigned char type,26 unsigned short reason);27extern void dn_nsp_send_link(struct sock *sk, unsigned char lsflags, char fcval);···2930extern void dn_nsp_output(struct sock *sk);31extern int dn_nsp_check_xmit_queue(struct sock *sk, struct sk_buff *skb, struct sk_buff_head *q, unsigned short acknum);32+extern void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb, unsigned int __nocast gfp, int oob);33extern unsigned long dn_nsp_persist(struct sock *sk);34extern int dn_nsp_xmit_timeout(struct sock *sk);3536extern int dn_nsp_rx(struct sk_buff *);37extern int dn_nsp_backlog_rcv(struct sock *sk, struct sk_buff *skb);3839+extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, unsigned int __nocast pri);40extern struct sk_buff *dn_alloc_send_skb(struct sock *sk, size_t *size, int noblock, long timeo, int *err);4142#define NSP_REASON_OK 0 /* No error */
+1-1
include/net/dn_route.h
···15 GNU General Public License for more details.16*******************************************************************************/1718-extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, int pri);19extern int dn_route_output_sock(struct dst_entry **pprt, struct flowi *, struct sock *sk, int flags);20extern int dn_cache_dump(struct sk_buff *skb, struct netlink_callback *cb);21extern int dn_cache_getroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg);
···15 GNU General Public License for more details.16*******************************************************************************/1718+extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, unsigned int __nocast pri);19extern int dn_route_output_sock(struct dst_entry **pprt, struct flowi *, struct sock *sk, int flags);20extern int dn_cache_dump(struct sk_buff *skb, struct netlink_callback *cb);21extern int dn_cache_getroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg);
+1-1
include/net/inet_hashtables.h
···40struct inet_ehash_bucket {41 rwlock_t lock;42 struct hlist_head chain;43-} __attribute__((__aligned__(8)));4445/* There are a few simple rules, which allow for local port reuse by46 * an application. In essence:
···40struct inet_ehash_bucket {41 rwlock_t lock;42 struct hlist_head chain;43+};4445/* There are a few simple rules, which allow for local port reuse by46 * an application. In essence:
+1-1
include/net/ip_vs.h
···832833extern int ip_vs_app_pkt_out(struct ip_vs_conn *, struct sk_buff **pskb);834extern int ip_vs_app_pkt_in(struct ip_vs_conn *, struct sk_buff **pskb);835-extern int ip_vs_skb_replace(struct sk_buff *skb, int pri,836 char *o_buf, int o_len, char *n_buf, int n_len);837extern int ip_vs_app_init(void);838extern void ip_vs_app_cleanup(void);
···832833extern int ip_vs_app_pkt_out(struct ip_vs_conn *, struct sk_buff **pskb);834extern int ip_vs_app_pkt_in(struct ip_vs_conn *, struct sk_buff **pskb);835+extern int ip_vs_skb_replace(struct sk_buff *skb, unsigned int __nocast pri,836 char *o_buf, int o_len, char *n_buf, int n_len);837extern int ip_vs_app_init(void);838extern void ip_vs_app_cleanup(void);
···875} 876#endif877878+struct xfrm_policy *xfrm_policy_alloc(unsigned int __nocast gfp);879extern int xfrm_policy_walk(int (*func)(struct xfrm_policy *, int, int, void*), void *);880int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl);881struct xfrm_policy *xfrm_policy_bysel(int dir, struct xfrm_selector *sel,···929 return ipv6_addr_cmp((struct in6_addr *)a,930 (struct in6_addr *)b);931 }932+}933+934+static inline int xfrm_policy_id2dir(u32 index)935+{936+ return index & 7;937}938939#endif /* _NET_XFRM_H */
+1-1
include/rxrpc/call.h
···203 size_t sioc,204 struct kvec *siov,205 uint8_t rxhdr_flags,206- int alloc_flags,207 int dup_data,208 size_t *size_sent);209
···203 size_t sioc,204 struct kvec *siov,205 uint8_t rxhdr_flags,206+ unsigned int __nocast alloc_flags,207 int dup_data,208 size_t *size_sent);209
+1-1
include/rxrpc/message.h
···63 uint8_t type,64 int count,65 struct kvec *diov,66- int alloc_flags,67 struct rxrpc_message **_msg);6869extern int rxrpc_conn_sendmsg(struct rxrpc_connection *conn, struct rxrpc_message *msg);
···63 uint8_t type,64 int count,65 struct kvec *diov,66+ unsigned int __nocast alloc_flags,67 struct rxrpc_message **_msg);6869extern int rxrpc_conn_sendmsg(struct rxrpc_connection *conn, struct rxrpc_message *msg);
+1-1
lib/ts_bm.c
···127}128129static struct ts_config *bm_init(const void *pattern, unsigned int len,130- int gfp_mask)131{132 struct ts_config *conf;133 struct ts_bm *bm;
···127}128129static struct ts_config *bm_init(const void *pattern, unsigned int len,130+ unsigned int __nocast gfp_mask)131{132 struct ts_config *conf;133 struct ts_bm *bm;
+1-1
lib/ts_fsm.c
···258}259260static struct ts_config *fsm_init(const void *pattern, unsigned int len,261- int gfp_mask)262{263 int i, err = -EINVAL;264 struct ts_config *conf;
···258}259260static struct ts_config *fsm_init(const void *pattern, unsigned int len,261+ unsigned int __nocast gfp_mask)262{263 int i, err = -EINVAL;264 struct ts_config *conf;
+1-1
lib/ts_kmp.c
···87}8889static struct ts_config *kmp_init(const void *pattern, unsigned int len,90- int gfp_mask)91{92 struct ts_config *conf;93 struct ts_kmp *kmp;
···87}8889static struct ts_config *kmp_init(const void *pattern, unsigned int len,90+ unsigned int __nocast gfp_mask)91{92 struct ts_config *conf;93 struct ts_kmp *kmp;
+1-1
net/atm/atm_misc.c
···252627struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size,28- int gfp_flags)29{30 struct sock *sk = sk_atm(vcc);31 int guess = atm_guess_pdu2truesize(pdu_size);
···252627struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size,28+ unsigned int __nocast gfp_flags)29{30 struct sock *sk = sk_atm(vcc);31 int guess = atm_guess_pdu2truesize(pdu_size);
···117 * The eventual aim is for each socket to have a cached header size118 * for its outgoing packets, and to set hdr from this when sk != NULL.119 */120-struct sk_buff *dn_alloc_skb(struct sock *sk, int size, int pri)0121{122 struct sk_buff *skb;123 int hdr = 64;···211 *212 * Returns: The number of times the packet has been sent previously213 */214-static inline unsigned dn_nsp_clone_and_send(struct sk_buff *skb, int gfp)0215{216 struct dn_skb_cb *cb = DN_SKB_CB(skb);217 struct sk_buff *skb2;···352 return ptr;353}354355-void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb, int gfp, int oth)0356{357 struct dn_scp *scp = DN_SK(sk);358 struct dn_skb_cb *cb = DN_SKB_CB(skb);···520 return 0;521}522523-void dn_send_conn_conf(struct sock *sk, int gfp)524{525 struct dn_scp *scp = DN_SK(sk);526 struct sk_buff *skb = NULL;···552553554static __inline__ void dn_nsp_do_disc(struct sock *sk, unsigned char msgflg, 555- unsigned short reason, int gfp, struct dst_entry *dst,0556 int ddl, unsigned char *dd, __u16 rem, __u16 loc)557{558 struct sk_buff *skb = NULL;···595596597void dn_nsp_send_disc(struct sock *sk, unsigned char msgflg, 598- unsigned short reason, int gfp)599{600 struct dn_scp *scp = DN_SK(sk);601 int ddl = 0;···616{617 struct dn_skb_cb *cb = DN_SKB_CB(skb);618 int ddl = 0;619- int gfp = GFP_ATOMIC;620621 dn_nsp_do_disc(NULL, msgflg, reason, gfp, skb->dst, ddl, 622 NULL, cb->src_port, cb->dst_port);···628 struct dn_scp *scp = DN_SK(sk);629 struct sk_buff *skb;630 unsigned char *ptr;631- int gfp = GFP_ATOMIC;632633 if ((skb = dn_alloc_skb(sk, DN_MAX_NSP_DATA_HEADER + 2, gfp)) == NULL)634 return;···663 unsigned char menuver;664 struct dn_skb_cb *cb;665 unsigned char type = 1;666- int allocation = (msgflg == NSP_CI) ? sk->sk_allocation : GFP_ATOMIC;0667 struct sk_buff *skb = dn_alloc_skb(sk, 200, allocation);668669 if (!skb)
···117 * The eventual aim is for each socket to have a cached header size118 * for its outgoing packets, and to set hdr from this when sk != NULL.119 */120+struct sk_buff *dn_alloc_skb(struct sock *sk, int size,121+ unsigned int __nocast pri)122{123 struct sk_buff *skb;124 int hdr = 64;···210 *211 * Returns: The number of times the packet has been sent previously212 */213+static inline unsigned dn_nsp_clone_and_send(struct sk_buff *skb,214+ unsigned int __nocast gfp)215{216 struct dn_skb_cb *cb = DN_SKB_CB(skb);217 struct sk_buff *skb2;···350 return ptr;351}352353+void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb,354+ unsigned int __nocast gfp, int oth)355{356 struct dn_scp *scp = DN_SK(sk);357 struct dn_skb_cb *cb = DN_SKB_CB(skb);···517 return 0;518}519520+void dn_send_conn_conf(struct sock *sk, unsigned int __nocast gfp)521{522 struct dn_scp *scp = DN_SK(sk);523 struct sk_buff *skb = NULL;···549550551static __inline__ void dn_nsp_do_disc(struct sock *sk, unsigned char msgflg, 552+ unsigned short reason, unsigned int __nocast gfp,553+ struct dst_entry *dst,554 int ddl, unsigned char *dd, __u16 rem, __u16 loc)555{556 struct sk_buff *skb = NULL;···591592593void dn_nsp_send_disc(struct sock *sk, unsigned char msgflg, 594+ unsigned short reason, unsigned int __nocast gfp)595{596 struct dn_scp *scp = DN_SK(sk);597 int ddl = 0;···612{613 struct dn_skb_cb *cb = DN_SKB_CB(skb);614 int ddl = 0;615+ unsigned int __nocast gfp = GFP_ATOMIC;616617 dn_nsp_do_disc(NULL, msgflg, reason, gfp, skb->dst, ddl, 618 NULL, cb->src_port, cb->dst_port);···624 struct dn_scp *scp = DN_SK(sk);625 struct sk_buff *skb;626 unsigned char *ptr;627+ unsigned int __nocast gfp = GFP_ATOMIC;628629 if ((skb = dn_alloc_skb(sk, DN_MAX_NSP_DATA_HEADER + 2, gfp)) == NULL)630 return;···659 unsigned char menuver;660 struct dn_skb_cb *cb;661 unsigned char type = 1;662+ unsigned int __nocast allocation =663+ (msgflg == NSP_CI) ? sk->sk_allocation : GFP_ATOMIC;664 struct sk_buff *skb = dn_alloc_skb(sk, 200, allocation);665666 if (!skb)
+1-1
net/ipv4/ipvs/ip_vs_app.c
···604/*605 * Replace a segment of data with a new segment606 */607-int ip_vs_skb_replace(struct sk_buff *skb, int pri,608 char *o_buf, int o_len, char *n_buf, int n_len)609{610 struct iphdr *iph;
···604/*605 * Replace a segment of data with a new segment606 */607+int ip_vs_skb_replace(struct sk_buff *skb, unsigned int __nocast pri,608 char *o_buf, int o_len, char *n_buf, int n_len)609{610 struct iphdr *iph;
+1-1
net/ipv4/netfilter/Kconfig
···141 tristate 'PPTP protocol support'142 help143 This module adds support for PPTP (Point to Point Tunnelling144- Protocol, RFC2637) conncection tracking and NAT. 145146 If you are running PPTP sessions over a stateful firewall or NAT147 box, you may want to enable this feature.
···141 tristate 'PPTP protocol support'142 help143 This module adds support for PPTP (Point to Point Tunnelling144+ Protocol, RFC2637) connection tracking and NAT. 145146 If you are running PPTP sessions over a stateful firewall or NAT147 box, you may want to enable this feature.
···1923 size_t sioc,1924 struct kvec *siov,1925 u8 rxhdr_flags,1926- int alloc_flags,1927 int dup_data,1928 size_t *size_sent)1929{
···1923 size_t sioc,1924 struct kvec *siov,1925 u8 rxhdr_flags,1926+ unsigned int __nocast alloc_flags,1927 int dup_data,1928 size_t *size_sent)1929{
+1-1
net/rxrpc/connection.c
···522 uint8_t type,523 int dcount,524 struct kvec diov[],525- int alloc_flags,526 struct rxrpc_message **_msg)527{528 struct rxrpc_message *msg;
···522 uint8_t type,523 int dcount,524 struct kvec diov[],525+ unsigned int __nocast alloc_flags,526 struct rxrpc_message **_msg)527{528 struct rxrpc_message *msg;
+1-1
net/sunrpc/sched.c
···719void *720rpc_malloc(struct rpc_task *task, size_t size)721{722- int gfp;723724 if (task->tk_flags & RPC_TASK_SWAPPER)725 gfp = GFP_ATOMIC;
···719void *720rpc_malloc(struct rpc_task *task, size_t size)721{722+ unsigned int __nocast gfp;723724 if (task->tk_flags & RPC_TASK_SWAPPER)725 gfp = GFP_ATOMIC;
+3-3
net/xfrm/xfrm_policy.c
···163 if (xp->dead)164 goto out;165166- dir = xp->index & 7;167168 if (xp->lft.hard_add_expires_seconds) {169 long tmo = xp->lft.hard_add_expires_seconds +···225 * SPD calls.226 */227228-struct xfrm_policy *xfrm_policy_alloc(int gfp)229{230 struct xfrm_policy *policy;231···417 struct xfrm_policy *pol, **p;418419 write_lock_bh(&xfrm_policy_lock);420- for (p = &xfrm_policy_list[id & 7]; (pol=*p)!=NULL; p = &pol->next) {421 if (pol->index == id) {422 xfrm_pol_hold(pol);423 if (delete)
···163 if (xp->dead)164 goto out;165166+ dir = xfrm_policy_id2dir(xp->index);167168 if (xp->lft.hard_add_expires_seconds) {169 long tmo = xp->lft.hard_add_expires_seconds +···225 * SPD calls.226 */227228+struct xfrm_policy *xfrm_policy_alloc(unsigned int __nocast gfp)229{230 struct xfrm_policy *policy;231···417 struct xfrm_policy *pol, **p;418419 write_lock_bh(&xfrm_policy_lock);420+ for (p = &xfrm_policy_list[dir]; (pol=*p)!=NULL; p = &pol->next) {421 if (pol->index == id) {422 xfrm_pol_hold(pol);423 if (delete)