eth1394: fix gfp flags type
PATCH 1/1 eth1394: fix gfp flags type
From: Randy Dunlap <[email protected]>
Fix nocast sparse warnings:drivers/ieee1394/eth1394.c:1651:46: warning: implicit cast to nocast type drivers/ieee1394/eth1394.c:1667:35: warning: implicit cast to nocast type
Signed-off-by Randy Dunlap <[email protected]>
---
drivers/ieee1394/eth1394.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-)
drivers/ieee1394/eth1394.c renamed from drivers/ieee1394/eth1394.c~eth1394_gfpmask +2 -1
@@ -1632,7 +1632,8 @@ static void ether1394_complete_cb(void */* Transmit a packet (called by kernel) */ static int ether1394_tx (struct sk_buff *skb,struct net_device *dev) { -int kmflags =in_interrupt () ?GFP_ATOMIC :GFP_KERNEL ; +unsigned int __nocast kmflags = +in_interrupt () ?GFP_ATOMIC :GFP_KERNEL ;struct eth1394hdr *eth;struct eth1394_priv *priv =netdev_priv (dev);int proto;
---
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors