Skip to content

Commit

Permalink
[PATCH] sungem: fix gfp flags type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Jeff Garzik committed Oct 4, 2005
1 parent 81c5873 commit 832f8f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/sungem.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 832f8f0

Please sign in to comment.