Skip to content

Commit b3407c8

Browse files
Ezequiel Lara Gomezdavem330
authored andcommitted
Cleanup some warning from timestamping code.
Following checkpatch.pl recommendations (which include replacing with <linux/io.h> the <asm/io.h>, since linux/io.h includes it). Signed-off-by: Ezequiel Lara Gomez <ezegomez@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6df014c commit b3407c8

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

‎drivers/net/loopback.c‎

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* Alan Cox : Fixed oddments for NET3.014
1515
* Alan Cox : Rejig for NET3.029 snap #3
16-
* Alan Cox : Fixed NET3.029 bugs and sped up
16+
* Alan Cox : Fixed NET3.029 bugs and sped up
1717
* Larry McVoy : Tiny tweak to double performance
1818
* Alan Cox : Backed out LMV's tweak - the linux mm
1919
* can't take it...
@@ -41,7 +41,7 @@
4141
#include <linux/in.h>
4242

4343
#include <linux/uaccess.h>
44-
#include <asm/io.h>
44+
#include <linux/io.h>
4545

4646
#include <linux/inet.h>
4747
#include <linux/netdevice.h>
@@ -65,8 +65,7 @@ struct pcpu_lstats {
6565
struct u64_stats_sync syncp;
6666
};
6767

68-
/*
69-
* The higher levels take care of making this non-reentrant (it's
68+
/* The higher levels take care of making this non-reentrant (it's
7069
* called with bh's disabled).
7170
*/
7271
static netdev_tx_t loopback_xmit(struct sk_buff *skb,
@@ -164,14 +163,13 @@ static void loopback_dev_free(struct net_device *dev)
164163
}
165164

166165
static const struct net_device_ops loopback_ops = {
167-
.ndo_init = loopback_dev_init,
168-
.ndo_start_xmit= loopback_xmit,
166+
.ndo_init = loopback_dev_init,
167+
.ndo_start_xmit = loopback_xmit,
169168
.ndo_get_stats64 = loopback_get_stats64,
170169
.ndo_set_mac_address = eth_mac_addr,
171170
};
172171

173-
/*
174-
* The loopback device is special. There is only one instance
172+
/* The loopback device is special. There is only one instance
175173
* per network namespace.
176174
*/
177175
static void loopback_setup(struct net_device *dev)
@@ -185,7 +183,7 @@ static void loopback_setup(struct net_device *dev)
185183
dev->priv_flags |= IFF_LIVE_ADDR_CHANGE | IFF_NO_QUEUE;
186184
netif_keep_dst(dev);
187185
dev->hw_features = NETIF_F_GSO_SOFTWARE;
188-
dev->features = NETIF_F_SG | NETIF_F_FRAGLIST
186+
dev->features = NETIF_F_SG | NETIF_F_FRAGLIST
189187
| NETIF_F_GSO_SOFTWARE
190188
| NETIF_F_HW_CSUM
191189
| NETIF_F_RXCSUM
@@ -221,7 +219,6 @@ static __net_init int loopback_net_init(struct net *net)
221219
net->loopback_dev = dev;
222220
return 0;
223221

224-
225222
out_free_netdev:
226223
free_netdev(dev);
227224
out:
@@ -232,5 +229,5 @@ static __net_init int loopback_net_init(struct net *net)
232229

233230
/* Registered in net/core/dev.c */
234231
struct pernet_operations __net_initdata loopback_net_ops = {
235-
.init = loopback_net_init,
232+
.init = loopback_net_init,
236233
};

0 commit comments

Comments
 (0)