aboutsummaryrefslogtreecommitdiffstats
path: root/net/ethernet
diff options
context:
space:
mode:
authorAvinash Kumar <avi.kp.137@gmail.com>2013-09-19 12:06:50 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-20 14:41:02 -0400
commit118a7b0ede580f3c5553028301001d46f8eede99 (patch)
tree6e19b1c70153ad46d922fbff4b17cb7b3bb419eb /net/ethernet
parent052c19e60d3c4dcded53f2c591efb5de84efd68c (diff)
net: ethernet: eth.c: removed checkpatch warnings and errors
removed these checkpatch.pl warnings: net/ethernet/eth.c:61: WARNING: Use #include <linux/uaccess.h> instead of <asm/uaccess.h> net/ethernet/eth.c:136: WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ... net/ethernet/eth.c:181: ERROR: space prohibited before that close parenthesis ')' Signed-off-by: Avinash Kumar <avi.kp.137@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ethernet')
-rw-r--r--net/ethernet/eth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c
index be1f64d35358..9bd3c31c30e5 100644
--- a/net/ethernet/eth.c
+++ b/net/ethernet/eth.c
@@ -58,7 +58,7 @@
58#include <net/ipv6.h> 58#include <net/ipv6.h>
59#include <net/ip.h> 59#include <net/ip.h>
60#include <net/dsa.h> 60#include <net/dsa.h>
61#include <asm/uaccess.h> 61#include <linux/uaccess.h>
62 62
63__setup("ether=", netdev_boot_setup); 63__setup("ether=", netdev_boot_setup);
64 64
@@ -133,7 +133,7 @@ int eth_rebuild_header(struct sk_buff *skb)
133 return arp_find(eth->h_dest, skb); 133 return arp_find(eth->h_dest, skb);
134#endif 134#endif
135 default: 135 default:
136 printk(KERN_DEBUG 136 netdev_dbg(dev,
137 "%s: unable to resolve type %X addresses.\n", 137 "%s: unable to resolve type %X addresses.\n",
138 dev->name, ntohs(eth->h_proto)); 138 dev->name, ntohs(eth->h_proto));
139 139
@@ -178,7 +178,7 @@ __be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev)
178 * seems to set IFF_PROMISC. 178 * seems to set IFF_PROMISC.
179 */ 179 */
180 180
181 else if (1 /*dev->flags&IFF_PROMISC */ ) { 181 else if (1 /*dev->flags&IFF_PROMISC */) {
182 if (unlikely(!ether_addr_equal_64bits(eth->h_dest, 182 if (unlikely(!ether_addr_equal_64bits(eth->h_dest,
183 dev->dev_addr))) 183 dev->dev_addr)))
184 skb->pkt_type = PACKET_OTHERHOST; 184 skb->pkt_type = PACKET_OTHERHOST;