summaryrefslogtreecommitdiff
path: root/drivers/net/sungem.h
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2005-10-04 00:41:22 -0700
committerJeff Garzik <jgarzik@pobox.com>2005-10-04 05:29:48 -0400
commit832f8f0378ff1566f2a222352c7ad5df3f8d0d9d (patch)
treef7b42af2245acd767716bea1f5d2ec05666d99a6 /drivers/net/sungem.h
parent81c58732277654a51bb52832e1bc74234bb977bc (diff)
downloadlinux-3.10-832f8f0378ff1566f2a222352c7ad5df3f8d0d9d.tar.gz
linux-3.10-832f8f0378ff1566f2a222352c7ad5df3f8d0d9d.tar.bz2
linux-3.10-832f8f0378ff1566f2a222352c7ad5df3f8d0d9d.zip
[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 <rdunlap@xenotime.net> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/sungem.h')
-rw-r--r--drivers/net/sungem.h3
1 files changed, 2 insertions, 1 deletions
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);