From: Randy Dunlap Date: Tue, 4 Oct 2005 07:41:22 +0000 (-0700) Subject: [PATCH] sungem: fix gfp flags type X-Git-Tag: v2.6.14-rc4~58 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=832f8f0378ff1566f2a222352c7ad5df3f8d0d9d;p=linux-2.6-omap-h63xx.git [PATCH] sungem: fix gfp flags type Fix nocast sparse warnings in sungen: drivers/net/sungem.h:1040:45: warning: implicit cast to nocast type Signed-off-by: Randy Dunlap Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/sungem.h b/drivers/net/sungem.h index ff8ae5f7997..16edbb1a4a7 100644 --- a/drivers/net/sungem.h +++ b/drivers/net/sungem.h @@ -1035,7 +1035,8 @@ struct gem { #define ALIGNED_RX_SKB_ADDR(addr) \ ((((unsigned long)(addr) + (64UL - 1UL)) & ~(64UL - 1UL)) - (unsigned long)(addr)) -static __inline__ struct sk_buff *gem_alloc_skb(int size, int gfp_flags) +static __inline__ struct sk_buff *gem_alloc_skb(int size, + unsigned int __nocast gfp_flags) { struct sk_buff *skb = alloc_skb(size + 64, gfp_flags);