You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
This commit is contained in:
@@ -178,14 +178,12 @@ fore200e_irq_itoa(int irq)
|
||||
|
||||
|
||||
static void*
|
||||
fore200e_kmalloc(int size, int flags)
|
||||
fore200e_kmalloc(int size, unsigned int __nocast flags)
|
||||
{
|
||||
void* chunk = kmalloc(size, flags);
|
||||
void *chunk = kzalloc(size, flags);
|
||||
|
||||
if (chunk)
|
||||
memset(chunk, 0x00, size);
|
||||
else
|
||||
printk(FORE200E "kmalloc() failed, requested size = %d, flags = 0x%x\n", size, flags);
|
||||
if (!chunk)
|
||||
printk(FORE200E "kmalloc() failed, requested size = %d, flags = 0x%x\n", size, flags);
|
||||
|
||||
return chunk;
|
||||
}
|
||||
|
||||
@@ -69,7 +69,8 @@ int cn_already_initialized = 0;
|
||||
* a new message.
|
||||
*
|
||||
*/
|
||||
int cn_netlink_send(struct cn_msg *msg, u32 __group, int gfp_mask)
|
||||
int cn_netlink_send(struct cn_msg *msg, u32 __group,
|
||||
unsigned int __nocast gfp_mask)
|
||||
{
|
||||
struct cn_callback_entry *__cbq;
|
||||
unsigned int size;
|
||||
|
||||
@@ -1289,12 +1289,13 @@ static void bond_mc_list_destroy(struct bonding *bond)
|
||||
/*
|
||||
* Copy all the Multicast addresses from src to the bonding device dst
|
||||
*/
|
||||
static int bond_mc_list_copy(struct dev_mc_list *mc_list, struct bonding *bond, int gpf_flag)
|
||||
static int bond_mc_list_copy(struct dev_mc_list *mc_list, struct bonding *bond,
|
||||
unsigned int __nocast gfp_flag)
|
||||
{
|
||||
struct dev_mc_list *dmi, *new_dmi;
|
||||
|
||||
for (dmi = mc_list; dmi; dmi = dmi->next) {
|
||||
new_dmi = kmalloc(sizeof(struct dev_mc_list), gpf_flag);
|
||||
new_dmi = kmalloc(sizeof(struct dev_mc_list), gfp_flag);
|
||||
|
||||
if (!new_dmi) {
|
||||
/* FIXME: Potential memory leak !!! */
|
||||
|
||||
@@ -457,7 +457,7 @@ static inline void atm_dev_put(struct atm_dev *dev)
|
||||
|
||||
int atm_charge(struct atm_vcc *vcc,int truesize);
|
||||
struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size,
|
||||
int gfp_flags);
|
||||
unsigned int __nocast gfp_flags);
|
||||
int atm_pcr_goal(struct atm_trafprm *tp);
|
||||
|
||||
void vcc_release_async(struct atm_vcc *vcc, int reply);
|
||||
|
||||
@@ -149,7 +149,7 @@ struct cn_dev {
|
||||
|
||||
int cn_add_callback(struct cb_id *, char *, void (*callback) (void *));
|
||||
void cn_del_callback(struct cb_id *);
|
||||
int cn_netlink_send(struct cn_msg *, u32, int);
|
||||
int cn_netlink_send(struct cn_msg *, u32, unsigned int __nocast);
|
||||
|
||||
int cn_queue_add_callback(struct cn_queue_dev *dev, char *name, struct cb_id *id, void (*callback)(void *));
|
||||
void cn_queue_del_callback(struct cn_queue_dev *dev, struct cb_id *id);
|
||||
|
||||
@@ -158,7 +158,8 @@ extern unsigned int textsearch_find_continuous(struct ts_config *,
|
||||
#define TS_PRIV_ALIGNTO 8
|
||||
#define TS_PRIV_ALIGN(len) (((len) + TS_PRIV_ALIGNTO-1) & ~(TS_PRIV_ALIGNTO-1))
|
||||
|
||||
static inline struct ts_config *alloc_ts_config(size_t payload, int gfp_mask)
|
||||
static inline struct ts_config *alloc_ts_config(size_t payload,
|
||||
unsigned int __nocast gfp_mask)
|
||||
{
|
||||
struct ts_config *conf;
|
||||
|
||||
|
||||
@@ -19,9 +19,9 @@ extern void dn_nsp_send_data_ack(struct sock *sk);
|
||||
extern void dn_nsp_send_oth_ack(struct sock *sk);
|
||||
extern void dn_nsp_delayed_ack(struct sock *sk);
|
||||
extern void dn_send_conn_ack(struct sock *sk);
|
||||
extern void dn_send_conn_conf(struct sock *sk, int gfp);
|
||||
extern void dn_send_conn_conf(struct sock *sk, unsigned int __nocast gfp);
|
||||
extern void dn_nsp_send_disc(struct sock *sk, unsigned char type,
|
||||
unsigned short reason, int gfp);
|
||||
unsigned short reason, unsigned int __nocast gfp);
|
||||
extern void dn_nsp_return_disc(struct sk_buff *skb, unsigned char type,
|
||||
unsigned short reason);
|
||||
extern void dn_nsp_send_link(struct sock *sk, unsigned char lsflags, char fcval);
|
||||
@@ -29,14 +29,14 @@ extern void dn_nsp_send_conninit(struct sock *sk, unsigned char flags);
|
||||
|
||||
extern void dn_nsp_output(struct sock *sk);
|
||||
extern int dn_nsp_check_xmit_queue(struct sock *sk, struct sk_buff *skb, struct sk_buff_head *q, unsigned short acknum);
|
||||
extern void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb, int gfp, int oob);
|
||||
extern void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb, unsigned int __nocast gfp, int oob);
|
||||
extern unsigned long dn_nsp_persist(struct sock *sk);
|
||||
extern int dn_nsp_xmit_timeout(struct sock *sk);
|
||||
|
||||
extern int dn_nsp_rx(struct sk_buff *);
|
||||
extern int dn_nsp_backlog_rcv(struct sock *sk, struct sk_buff *skb);
|
||||
|
||||
extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, int pri);
|
||||
extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, unsigned int __nocast pri);
|
||||
extern struct sk_buff *dn_alloc_send_skb(struct sock *sk, size_t *size, int noblock, long timeo, int *err);
|
||||
|
||||
#define NSP_REASON_OK 0 /* No error */
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
GNU General Public License for more details.
|
||||
*******************************************************************************/
|
||||
|
||||
extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, int pri);
|
||||
extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, unsigned int __nocast pri);
|
||||
extern int dn_route_output_sock(struct dst_entry **pprt, struct flowi *, struct sock *sk, int flags);
|
||||
extern int dn_cache_dump(struct sk_buff *skb, struct netlink_callback *cb);
|
||||
extern int dn_cache_getroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg);
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
struct inet_ehash_bucket {
|
||||
rwlock_t lock;
|
||||
struct hlist_head chain;
|
||||
} __attribute__((__aligned__(8)));
|
||||
};
|
||||
|
||||
/* There are a few simple rules, which allow for local port reuse by
|
||||
* an application. In essence:
|
||||
|
||||
+1
-1
@@ -832,7 +832,7 @@ extern void ip_vs_app_inc_put(struct ip_vs_app *inc);
|
||||
|
||||
extern int ip_vs_app_pkt_out(struct ip_vs_conn *, struct sk_buff **pskb);
|
||||
extern int ip_vs_app_pkt_in(struct ip_vs_conn *, struct sk_buff **pskb);
|
||||
extern int ip_vs_skb_replace(struct sk_buff *skb, int pri,
|
||||
extern int ip_vs_skb_replace(struct sk_buff *skb, unsigned int __nocast pri,
|
||||
char *o_buf, int o_len, char *n_buf, int n_len);
|
||||
extern int ip_vs_app_init(void);
|
||||
extern void ip_vs_app_cleanup(void);
|
||||
|
||||
+6
-1
@@ -875,7 +875,7 @@ static inline int xfrm_dst_lookup(struct xfrm_dst **dst, struct flowi *fl, unsig
|
||||
}
|
||||
#endif
|
||||
|
||||
struct xfrm_policy *xfrm_policy_alloc(int gfp);
|
||||
struct xfrm_policy *xfrm_policy_alloc(unsigned int __nocast gfp);
|
||||
extern int xfrm_policy_walk(int (*func)(struct xfrm_policy *, int, int, void*), void *);
|
||||
int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl);
|
||||
struct xfrm_policy *xfrm_policy_bysel(int dir, struct xfrm_selector *sel,
|
||||
@@ -931,4 +931,9 @@ static inline int xfrm_addr_cmp(xfrm_address_t *a, xfrm_address_t *b,
|
||||
}
|
||||
}
|
||||
|
||||
static inline int xfrm_policy_id2dir(u32 index)
|
||||
{
|
||||
return index & 7;
|
||||
}
|
||||
|
||||
#endif /* _NET_XFRM_H */
|
||||
|
||||
@@ -203,7 +203,7 @@ extern int rxrpc_call_write_data(struct rxrpc_call *call,
|
||||
size_t sioc,
|
||||
struct kvec *siov,
|
||||
uint8_t rxhdr_flags,
|
||||
int alloc_flags,
|
||||
unsigned int __nocast alloc_flags,
|
||||
int dup_data,
|
||||
size_t *size_sent);
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ extern int rxrpc_conn_newmsg(struct rxrpc_connection *conn,
|
||||
uint8_t type,
|
||||
int count,
|
||||
struct kvec *diov,
|
||||
int alloc_flags,
|
||||
unsigned int __nocast alloc_flags,
|
||||
struct rxrpc_message **_msg);
|
||||
|
||||
extern int rxrpc_conn_sendmsg(struct rxrpc_connection *conn, struct rxrpc_message *msg);
|
||||
|
||||
+1
-1
@@ -127,7 +127,7 @@ static void compute_prefix_tbl(struct ts_bm *bm, const u8 *pattern,
|
||||
}
|
||||
|
||||
static struct ts_config *bm_init(const void *pattern, unsigned int len,
|
||||
int gfp_mask)
|
||||
unsigned int __nocast gfp_mask)
|
||||
{
|
||||
struct ts_config *conf;
|
||||
struct ts_bm *bm;
|
||||
|
||||
+1
-1
@@ -258,7 +258,7 @@ found_match:
|
||||
}
|
||||
|
||||
static struct ts_config *fsm_init(const void *pattern, unsigned int len,
|
||||
int gfp_mask)
|
||||
unsigned int __nocast gfp_mask)
|
||||
{
|
||||
int i, err = -EINVAL;
|
||||
struct ts_config *conf;
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@ static inline void compute_prefix_tbl(const u8 *pattern, unsigned int len,
|
||||
}
|
||||
|
||||
static struct ts_config *kmp_init(const void *pattern, unsigned int len,
|
||||
int gfp_mask)
|
||||
unsigned int __nocast gfp_mask)
|
||||
{
|
||||
struct ts_config *conf;
|
||||
struct ts_kmp *kmp;
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ int atm_charge(struct atm_vcc *vcc,int truesize)
|
||||
|
||||
|
||||
struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size,
|
||||
int gfp_flags)
|
||||
unsigned int __nocast gfp_flags)
|
||||
{
|
||||
struct sock *sk = sk_atm(vcc);
|
||||
int guess = atm_guess_pdu2truesize(pdu_size);
|
||||
|
||||
+1
-1
@@ -123,7 +123,7 @@ int ax25_rx_iframe(ax25_cb *ax25, struct sk_buff *skb)
|
||||
}
|
||||
|
||||
skb_pull(skb, 1); /* Remove PID */
|
||||
skb->h.raw = skb->data;
|
||||
skb->mac.raw = skb->nh.raw;
|
||||
skb->nh.raw = skb->data;
|
||||
skb->dev = ax25->ax25_dev->dev;
|
||||
skb->pkt_type = PACKET_HOST;
|
||||
|
||||
@@ -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);
|
||||
|
||||
+14
-9
@@ -117,7 +117,8 @@ 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, int pri)
|
||||
struct sk_buff *dn_alloc_skb(struct sock *sk, int size,
|
||||
unsigned int __nocast pri)
|
||||
{
|
||||
struct sk_buff *skb;
|
||||
int hdr = 64;
|
||||
@@ -210,7 +211,8 @@ 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, int gfp)
|
||||
static inline unsigned dn_nsp_clone_and_send(struct sk_buff *skb,
|
||||
unsigned int __nocast gfp)
|
||||
{
|
||||
struct dn_skb_cb *cb = DN_SKB_CB(skb);
|
||||
struct sk_buff *skb2;
|
||||
@@ -350,7 +352,8 @@ static unsigned short *dn_nsp_mk_data_header(struct sock *sk, struct sk_buff *sk
|
||||
return ptr;
|
||||
}
|
||||
|
||||
void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb, int gfp, int oth)
|
||||
void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb,
|
||||
unsigned int __nocast gfp, int oth)
|
||||
{
|
||||
struct dn_scp *scp = DN_SK(sk);
|
||||
struct dn_skb_cb *cb = DN_SKB_CB(skb);
|
||||
@@ -517,7 +520,7 @@ static int dn_nsp_retrans_conn_conf(struct sock *sk)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void dn_send_conn_conf(struct sock *sk, int gfp)
|
||||
void dn_send_conn_conf(struct sock *sk, unsigned int __nocast gfp)
|
||||
{
|
||||
struct dn_scp *scp = DN_SK(sk);
|
||||
struct sk_buff *skb = NULL;
|
||||
@@ -549,7 +552,8 @@ void dn_send_conn_conf(struct sock *sk, int gfp)
|
||||
|
||||
|
||||
static __inline__ void dn_nsp_do_disc(struct sock *sk, unsigned char msgflg,
|
||||
unsigned short reason, int gfp, struct dst_entry *dst,
|
||||
unsigned short reason, unsigned int __nocast gfp,
|
||||
struct dst_entry *dst,
|
||||
int ddl, unsigned char *dd, __u16 rem, __u16 loc)
|
||||
{
|
||||
struct sk_buff *skb = NULL;
|
||||
@@ -591,7 +595,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, int gfp)
|
||||
unsigned short reason, unsigned int __nocast gfp)
|
||||
{
|
||||
struct dn_scp *scp = DN_SK(sk);
|
||||
int ddl = 0;
|
||||
@@ -612,7 +616,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;
|
||||
int gfp = GFP_ATOMIC;
|
||||
unsigned int __nocast gfp = GFP_ATOMIC;
|
||||
|
||||
dn_nsp_do_disc(NULL, msgflg, reason, gfp, skb->dst, ddl,
|
||||
NULL, cb->src_port, cb->dst_port);
|
||||
@@ -624,7 +628,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;
|
||||
int gfp = GFP_ATOMIC;
|
||||
unsigned int __nocast gfp = GFP_ATOMIC;
|
||||
|
||||
if ((skb = dn_alloc_skb(sk, DN_MAX_NSP_DATA_HEADER + 2, gfp)) == NULL)
|
||||
return;
|
||||
@@ -659,7 +663,8 @@ void dn_nsp_send_conninit(struct sock *sk, unsigned char msgflg)
|
||||
unsigned char menuver;
|
||||
struct dn_skb_cb *cb;
|
||||
unsigned char type = 1;
|
||||
int allocation = (msgflg == NSP_CI) ? sk->sk_allocation : GFP_ATOMIC;
|
||||
unsigned int __nocast allocation =
|
||||
(msgflg == NSP_CI) ? sk->sk_allocation : GFP_ATOMIC;
|
||||
struct sk_buff *skb = dn_alloc_skb(sk, 200, allocation);
|
||||
|
||||
if (!skb)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user