]> err.no Git - linux-2.6/commitdiff
[PATCH] sungem: fix gfp flags type
authorRandy Dunlap <rdunlap@xenotime.net>
Tue, 4 Oct 2005 07:41:22 +0000 (00:41 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 4 Oct 2005 09:29:48 +0000 (05:29 -0400)
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>
drivers/net/sungem.h

index ff8ae5f7997001f3725a0d943f89e5937dc57f87..16edbb1a4a7a147677ff5485653bf64a968f8e38 100644 (file)
@@ -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);