Skip to content

Commit 4ec93ed

Browse files
yoshfujiDavid S. Miller
authored andcommitted
[NET] CORE: Fix whitespace errors.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9d6f229 commit 4ec93ed

22 files changed

Lines changed: 262 additions & 262 deletions

‎net/core/datagram.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ EXPORT_SYMBOL(__skb_checksum_complete);
430430
* @skb: skbuff
431431
* @hlen: hardware length
432432
* @iov: io vector
433-
*
433+
*
434434
* Caller _must_ check that skb will fit to this iovec.
435435
*
436436
* Returns: 0 - success.

‎net/core/dev.c‎

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static int netdev_nit;
255255
* is linked into kernel lists and may not be freed until it has been
256256
* removed from the kernel lists.
257257
*
258-
* This call does not sleep therefore it can not
258+
* This call does not sleep therefore it can not
259259
* guarantee all CPU's that are in middle of receiving packets
260260
* will see the new packet type (until the next received packet).
261261
*/
@@ -282,7 +282,7 @@ void dev_add_pack(struct packet_type *pt)
282282
* Remove a protocol handler that was previously added to the kernel
283283
* protocol handlers by dev_add_pack(). The passed &packet_type is removed
284284
* from the kernel lists and can be freed or reused once this function
285-
* returns.
285+
* returns.
286286
*
287287
* The packet type might still be in use by receivers
288288
* and must not be freed until after all the CPU's have gone
@@ -327,7 +327,7 @@ void __dev_remove_pack(struct packet_type *pt)
327327
void dev_remove_pack(struct packet_type *pt)
328328
{
329329
__dev_remove_pack(pt);
330-
330+
331331
synchronize_net();
332332
}
333333

@@ -607,7 +607,7 @@ EXPORT_SYMBOL(dev_getfirstbyhwtype);
607607
* @mask: bitmask of bits in if_flags to check
608608
*
609609
* Search for any interface with the given flags. Returns NULL if a device
610-
* is not found or a pointer to the device. The device returned has
610+
* is not found or a pointer to the device. The device returned has
611611
* had a reference added and the pointer is safe until the user calls
612612
* dev_put to indicate they have finished with it.
613613
*/
@@ -802,7 +802,7 @@ void netdev_state_change(struct net_device *dev)
802802

803803
void dev_load(const char *name)
804804
{
805-
struct net_device *dev;
805+
struct net_device *dev;
806806

807807
read_lock(&dev_base_lock);
808808
dev = __dev_get_by_name(name);
@@ -860,7 +860,7 @@ int dev_open(struct net_device *dev)
860860
clear_bit(__LINK_STATE_START, &dev->state);
861861
}
862862

863-
/*
863+
/*
864864
* If it went open OK then:
865865
*/
866866

@@ -964,7 +964,7 @@ int dev_close(struct net_device *dev)
964964
* is returned on a failure.
965965
*
966966
* When registered all registration and up events are replayed
967-
* to the new notifier to allow device to have a race free
967+
* to the new notifier to allow device to have a race free
968968
* view of the network device list.
969969
*/
970970

@@ -979,7 +979,7 @@ int register_netdevice_notifier(struct notifier_block *nb)
979979
for (dev = dev_base; dev; dev = dev->next) {
980980
nb->notifier_call(nb, NETDEV_REGISTER, dev);
981981

982-
if (dev->flags & IFF_UP)
982+
if (dev->flags & IFF_UP)
983983
nb->notifier_call(nb, NETDEV_UP, dev);
984984
}
985985
}
@@ -1157,7 +1157,7 @@ void netif_device_attach(struct net_device *dev)
11571157
if (!test_and_set_bit(__LINK_STATE_PRESENT, &dev->state) &&
11581158
netif_running(dev)) {
11591159
netif_wake_queue(dev);
1160-
__netdev_watchdog_up(dev);
1160+
__netdev_watchdog_up(dev);
11611161
}
11621162
}
11631163
EXPORT_SYMBOL(netif_device_attach);
@@ -1197,7 +1197,7 @@ int skb_checksum_help(struct sk_buff *skb)
11971197

11981198
out_set_summed:
11991199
skb->ip_summed = CHECKSUM_NONE;
1200-
out:
1200+
out:
12011201
return ret;
12021202
}
12031203

@@ -1258,7 +1258,7 @@ EXPORT_SYMBOL(skb_gso_segment);
12581258
void netdev_rx_csum_fault(struct net_device *dev)
12591259
{
12601260
if (net_ratelimit()) {
1261-
printk(KERN_ERR "%s: hw csum failure.\n",
1261+
printk(KERN_ERR "%s: hw csum failure.\n",
12621262
dev ? dev->name : "<unknown>");
12631263
dump_stack();
12641264
}
@@ -1372,7 +1372,7 @@ int dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
13721372
if (unlikely(netif_queue_stopped(dev) && skb->next))
13731373
return NETDEV_TX_BUSY;
13741374
} while (skb->next);
1375-
1375+
13761376
skb->destructor = DEV_GSO_CB(skb)->destructor;
13771377

13781378
out_kfree_skb:
@@ -1449,25 +1449,25 @@ int dev_queue_xmit(struct sk_buff *skb)
14491449
(!(dev->features & NETIF_F_GEN_CSUM) &&
14501450
(!(dev->features & NETIF_F_IP_CSUM) ||
14511451
skb->protocol != htons(ETH_P_IP))))
1452-
if (skb_checksum_help(skb))
1453-
goto out_kfree_skb;
1452+
if (skb_checksum_help(skb))
1453+
goto out_kfree_skb;
14541454

14551455
gso:
14561456
spin_lock_prefetch(&dev->queue_lock);
14571457

1458-
/* Disable soft irqs for various locks below. Also
1459-
* stops preemption for RCU.
1458+
/* Disable soft irqs for various locks below. Also
1459+
* stops preemption for RCU.
14601460
*/
1461-
rcu_read_lock_bh();
1461+
rcu_read_lock_bh();
14621462

1463-
/* Updates of qdisc are serialized by queue_lock.
1464-
* The struct Qdisc which is pointed to by qdisc is now a
1465-
* rcu structure - it may be accessed without acquiring
1463+
/* Updates of qdisc are serialized by queue_lock.
1464+
* The struct Qdisc which is pointed to by qdisc is now a
1465+
* rcu structure - it may be accessed without acquiring
14661466
* a lock (but the structure may be stale.) The freeing of the
1467-
* qdisc will be deferred until it's known that there are no
1467+
* qdisc will be deferred until it's known that there are no
14681468
* more references to it.
1469-
*
1470-
* If the qdisc has an enqueue function, we still need to
1469+
*
1470+
* If the qdisc has an enqueue function, we still need to
14711471
* hold the queue_lock before calling it, since queue_lock
14721472
* also serializes access to the device queue.
14731473
*/
@@ -1715,8 +1715,8 @@ static __inline__ int handle_bridge(struct sk_buff **pskb,
17151715
if (*pt_prev) {
17161716
*ret = deliver_skb(*pskb, *pt_prev, orig_dev);
17171717
*pt_prev = NULL;
1718-
}
1719-
1718+
}
1719+
17201720
return br_handle_frame_hook(port, pskb);
17211721
}
17221722
#else
@@ -1728,16 +1728,16 @@ static __inline__ int handle_bridge(struct sk_buff **pskb,
17281728
* when CONFIG_NET_CLS_ACT is? otherwise some useless instructions
17291729
* a compare and 2 stores extra right now if we dont have it on
17301730
* but have CONFIG_NET_CLS_ACT
1731-
* NOTE: This doesnt stop any functionality; if you dont have
1731+
* NOTE: This doesnt stop any functionality; if you dont have
17321732
* the ingress scheduler, you just cant add policies on ingress.
17331733
*
17341734
*/
1735-
static int ing_filter(struct sk_buff *skb)
1735+
static int ing_filter(struct sk_buff *skb)
17361736
{
17371737
struct Qdisc *q;
17381738
struct net_device *dev = skb->dev;
17391739
int result = TC_ACT_OK;
1740-
1740+
17411741
if (dev->qdisc_ingress) {
17421742
__u32 ttl = (__u32) G_TC_RTTL(skb->tc_verd);
17431743
if (MAX_RED_LOOP < ttl++) {
@@ -1801,7 +1801,7 @@ int netif_receive_skb(struct sk_buff *skb)
18011801

18021802
list_for_each_entry_rcu(ptype, &ptype_all, list) {
18031803
if (!ptype->dev || ptype->dev == skb->dev) {
1804-
if (pt_prev)
1804+
if (pt_prev)
18051805
ret = deliver_skb(skb, pt_prev, orig_dev);
18061806
pt_prev = ptype;
18071807
}
@@ -1833,7 +1833,7 @@ int netif_receive_skb(struct sk_buff *skb)
18331833
list_for_each_entry_rcu(ptype, &ptype_base[ntohs(type)&15], list) {
18341834
if (ptype->type == type &&
18351835
(!ptype->dev || ptype->dev == skb->dev)) {
1836-
if (pt_prev)
1836+
if (pt_prev)
18371837
ret = deliver_skb(skb, pt_prev, orig_dev);
18381838
pt_prev = ptype;
18391839
}
@@ -2061,7 +2061,7 @@ static int dev_ifconf(char __user *arg)
20612061
total += done;
20622062
}
20632063
}
2064-
}
2064+
}
20652065

20662066
/*
20672067
* All done. Write the updated control block back to the caller.
@@ -2154,7 +2154,7 @@ static struct netif_rx_stats *softnet_get_online(loff_t *pos)
21542154
struct netif_rx_stats *rc = NULL;
21552155

21562156
while (*pos < NR_CPUS)
2157-
if (cpu_online(*pos)) {
2157+
if (cpu_online(*pos)) {
21582158
rc = &per_cpu(netdev_rx_stat, *pos);
21592159
break;
21602160
} else
@@ -2282,7 +2282,7 @@ int netdev_set_master(struct net_device *slave, struct net_device *master)
22822282
}
22832283

22842284
slave->master = master;
2285-
2285+
22862286
synchronize_net();
22872287

22882288
if (old)
@@ -2319,13 +2319,13 @@ void dev_set_promiscuity(struct net_device *dev, int inc)
23192319
dev_mc_upload(dev);
23202320
printk(KERN_INFO "device %s %s promiscuous mode\n",
23212321
dev->name, (dev->flags & IFF_PROMISC) ? "entered" :
2322-
"left");
2322+
"left");
23232323
audit_log(current->audit_context, GFP_ATOMIC,
23242324
AUDIT_ANOM_PROMISCUOUS,
23252325
"dev=%s prom=%d old_prom=%d auid=%u",
23262326
dev->name, (dev->flags & IFF_PROMISC),
23272327
(old_flags & IFF_PROMISC),
2328-
audit_get_loginuid(current->audit_context));
2328+
audit_get_loginuid(current->audit_context));
23292329
}
23302330
}
23312331

@@ -2816,7 +2816,7 @@ int dev_ioctl(unsigned int cmd, void __user *arg)
28162816
rtnl_unlock();
28172817
if (IW_IS_GET(cmd) &&
28182818
copy_to_user(arg, &ifr,
2819-
sizeof(struct ifreq)))
2819+
sizeof(struct ifreq)))
28202820
ret = -EFAULT;
28212821
return ret;
28222822
}
@@ -2906,7 +2906,7 @@ int register_netdevice(struct net_device *dev)
29062906
goto out;
29072907
}
29082908
}
2909-
2909+
29102910
if (!dev_valid_name(dev->name)) {
29112911
ret = -EINVAL;
29122912
goto out;
@@ -2923,9 +2923,9 @@ int register_netdevice(struct net_device *dev)
29232923
= hlist_entry(p, struct net_device, name_hlist);
29242924
if (!strncmp(d->name, dev->name, IFNAMSIZ)) {
29252925
ret = -EEXIST;
2926-
goto out;
2926+
goto out;
29272927
}
2928-
}
2928+
}
29292929

29302930
/* Fix illegal SG+CSUM combinations. */
29312931
if ((dev->features & NETIF_F_SG) &&
@@ -3024,7 +3024,7 @@ int register_netdev(struct net_device *dev)
30243024
if (err < 0)
30253025
goto out;
30263026
}
3027-
3027+
30283028
err = register_netdevice(dev);
30293029
out:
30303030
rtnl_unlock();
@@ -3041,7 +3041,7 @@ EXPORT_SYMBOL(register_netdev);
30413041
* for netdevice notification, and cleanup and put back the
30423042
* reference if they receive an UNREGISTER event.
30433043
* We can get stuck here if buggy protocols don't correctly
3044-
* call dev_put.
3044+
* call dev_put.
30453045
*/
30463046
static void netdev_wait_allrefs(struct net_device *dev)
30473047
{
@@ -3205,8 +3205,8 @@ EXPORT_SYMBOL(alloc_netdev);
32053205
* free_netdev - free network device
32063206
* @dev: device
32073207
*
3208-
* This function does the last stage of destroying an allocated device
3209-
* interface. The reference to the device object is released.
3208+
* This function does the last stage of destroying an allocated device
3209+
* interface. The reference to the device object is released.
32103210
* If this is the last reference then it will be freed.
32113211
*/
32123212
void free_netdev(struct net_device *dev)
@@ -3227,9 +3227,9 @@ void free_netdev(struct net_device *dev)
32273227
kfree((char *)dev - dev->padded);
32283228
#endif
32293229
}
3230-
3230+
32313231
/* Synchronize with packet receive processing. */
3232-
void synchronize_net(void)
3232+
void synchronize_net(void)
32333233
{
32343234
might_sleep();
32353235
synchronize_rcu();
@@ -3291,12 +3291,12 @@ void unregister_netdevice(struct net_device *dev)
32913291
/* Shutdown queueing discipline. */
32923292
dev_shutdown(dev);
32933293

3294-
3294+
32953295
/* Notify protocols, that we are about to destroy
32963296
this device. They should clean all the things.
32973297
*/
32983298
raw_notifier_call_chain(&netdev_chain, NETDEV_UNREGISTER, dev);
3299-
3299+
33003300
/*
33013301
* Flush the multicast chain
33023302
*/
@@ -3483,7 +3483,7 @@ static int __init net_dev_init(void)
34833483
goto out;
34843484

34853485
INIT_LIST_HEAD(&ptype_all);
3486-
for (i = 0; i < 16; i++)
3486+
for (i = 0; i < 16; i++)
34873487
INIT_LIST_HEAD(&ptype_base[i]);
34883488

34893489
for (i = 0; i < ARRAY_SIZE(dev_name_head); i++)

0 commit comments

Comments
 (0)