Skip to contentSkip to conversation

eth1394: fix gfp flags type

PATCH New Randy.Dunlap 1 participant 1 message Oct 5, 2005 Kernel janitors

lore
Share & tools
lore
#0 lore raw

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

---

 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
diff -Naurp linux-2614-rc2-git6/drivers/ieee1394/eth1394.c~eth1394_gfpmask linux-2614-rc2-git6/drivers/ieee1394/eth1394.c
@@ -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