Commit f4563a75 authored by tcharding's avatar tcharding Committed by David S. Miller

net: Fix checkpatch, Missing a blank line after declarations

This patch fixes multiple occurrences of checkpatch WARNING: Missing
a blank line after declarations.
Signed-off-by: default avatarTobin C. Harding <me@tobin.cc>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent eb13da1a
...@@ -2498,6 +2498,7 @@ u16 __skb_tx_hash(const struct net_device *dev, struct sk_buff *skb, ...@@ -2498,6 +2498,7 @@ u16 __skb_tx_hash(const struct net_device *dev, struct sk_buff *skb,
if (dev->num_tc) { if (dev->num_tc) {
u8 tc = netdev_get_prio_tc_map(dev, skb->priority); u8 tc = netdev_get_prio_tc_map(dev, skb->priority);
qoffset = dev->tc_to_txq[tc].offset; qoffset = dev->tc_to_txq[tc].offset;
qcount = dev->tc_to_txq[tc].count; qcount = dev->tc_to_txq[tc].count;
} }
...@@ -2719,9 +2720,11 @@ static int illegal_highdma(struct net_device *dev, struct sk_buff *skb) ...@@ -2719,9 +2720,11 @@ static int illegal_highdma(struct net_device *dev, struct sk_buff *skb)
{ {
#ifdef CONFIG_HIGHMEM #ifdef CONFIG_HIGHMEM
int i; int i;
if (!(dev->features & NETIF_F_HIGHDMA)) { if (!(dev->features & NETIF_F_HIGHDMA)) {
for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) {
skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
if (PageHighMem(skb_frag_page(frag))) if (PageHighMem(skb_frag_page(frag)))
return 1; return 1;
} }
...@@ -2735,6 +2738,7 @@ static int illegal_highdma(struct net_device *dev, struct sk_buff *skb) ...@@ -2735,6 +2738,7 @@ static int illegal_highdma(struct net_device *dev, struct sk_buff *skb)
for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) {
skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
dma_addr_t addr = page_to_phys(skb_frag_page(frag)); dma_addr_t addr = page_to_phys(skb_frag_page(frag));
if (!pdev->dma_mask || addr + PAGE_SIZE - 1 > *pdev->dma_mask) if (!pdev->dma_mask || addr + PAGE_SIZE - 1 > *pdev->dma_mask)
return 1; return 1;
} }
...@@ -3210,6 +3214,7 @@ static u16 __netdev_pick_tx(struct net_device *dev, struct sk_buff *skb) ...@@ -3210,6 +3214,7 @@ static u16 __netdev_pick_tx(struct net_device *dev, struct sk_buff *skb)
if (queue_index < 0 || skb->ooo_okay || if (queue_index < 0 || skb->ooo_okay ||
queue_index >= dev->real_num_tx_queues) { queue_index >= dev->real_num_tx_queues) {
int new_index = get_xps_queue(dev, skb); int new_index = get_xps_queue(dev, skb);
if (new_index < 0) if (new_index < 0)
new_index = skb_tx_hash(dev, skb); new_index = skb_tx_hash(dev, skb);
...@@ -3239,6 +3244,7 @@ struct netdev_queue *netdev_pick_tx(struct net_device *dev, ...@@ -3239,6 +3244,7 @@ struct netdev_queue *netdev_pick_tx(struct net_device *dev,
if (dev->real_num_tx_queues != 1) { if (dev->real_num_tx_queues != 1) {
const struct net_device_ops *ops = dev->netdev_ops; const struct net_device_ops *ops = dev->netdev_ops;
if (ops->ndo_select_queue) if (ops->ndo_select_queue)
queue_index = ops->ndo_select_queue(dev, skb, accel_priv, queue_index = ops->ndo_select_queue(dev, skb, accel_priv,
__netdev_pick_tx); __netdev_pick_tx);
...@@ -3768,6 +3774,7 @@ static int netif_rx_internal(struct sk_buff *skb) ...@@ -3768,6 +3774,7 @@ static int netif_rx_internal(struct sk_buff *skb)
#endif #endif
{ {
unsigned int qtail; unsigned int qtail;
ret = enqueue_to_backlog(skb, get_cpu(), &qtail); ret = enqueue_to_backlog(skb, get_cpu(), &qtail);
put_cpu(); put_cpu();
} }
...@@ -3827,6 +3834,7 @@ static __latent_entropy void net_tx_action(struct softirq_action *h) ...@@ -3827,6 +3834,7 @@ static __latent_entropy void net_tx_action(struct softirq_action *h)
while (clist) { while (clist) {
struct sk_buff *skb = clist; struct sk_buff *skb = clist;
clist = clist->next; clist = clist->next;
WARN_ON(atomic_read(&skb->users)); WARN_ON(atomic_read(&skb->users));
...@@ -5663,6 +5671,7 @@ static int netdev_adjacent_sysfs_add(struct net_device *dev, ...@@ -5663,6 +5671,7 @@ static int netdev_adjacent_sysfs_add(struct net_device *dev,
struct list_head *dev_list) struct list_head *dev_list)
{ {
char linkname[IFNAMSIZ+7]; char linkname[IFNAMSIZ+7];
sprintf(linkname, dev_list == &dev->adj_list.upper ? sprintf(linkname, dev_list == &dev->adj_list.upper ?
"upper_%s" : "lower_%s", adj_dev->name); "upper_%s" : "lower_%s", adj_dev->name);
return sysfs_create_link(&(dev->dev.kobj), &(adj_dev->dev.kobj), return sysfs_create_link(&(dev->dev.kobj), &(adj_dev->dev.kobj),
...@@ -5673,6 +5682,7 @@ static void netdev_adjacent_sysfs_del(struct net_device *dev, ...@@ -5673,6 +5682,7 @@ static void netdev_adjacent_sysfs_del(struct net_device *dev,
struct list_head *dev_list) struct list_head *dev_list)
{ {
char linkname[IFNAMSIZ+7]; char linkname[IFNAMSIZ+7];
sprintf(linkname, dev_list == &dev->adj_list.upper ? sprintf(linkname, dev_list == &dev->adj_list.upper ?
"upper_%s" : "lower_%s", name); "upper_%s" : "lower_%s", name);
sysfs_remove_link(&(dev->dev.kobj), linkname); sysfs_remove_link(&(dev->dev.kobj), linkname);
...@@ -5942,6 +5952,7 @@ void netdev_upper_dev_unlink(struct net_device *dev, ...@@ -5942,6 +5952,7 @@ void netdev_upper_dev_unlink(struct net_device *dev,
struct net_device *upper_dev) struct net_device *upper_dev)
{ {
struct netdev_notifier_changeupper_info changeupper_info; struct netdev_notifier_changeupper_info changeupper_info;
ASSERT_RTNL(); ASSERT_RTNL();
changeupper_info.upper_dev = upper_dev; changeupper_info.upper_dev = upper_dev;
...@@ -6659,6 +6670,7 @@ EXPORT_SYMBOL(dev_change_xdp_fd); ...@@ -6659,6 +6670,7 @@ EXPORT_SYMBOL(dev_change_xdp_fd);
static int dev_new_index(struct net *net) static int dev_new_index(struct net *net)
{ {
int ifindex = net->ifindex; int ifindex = net->ifindex;
for (;;) { for (;;) {
if (++ifindex <= 0) if (++ifindex <= 0)
ifindex = 1; ifindex = 1;
...@@ -7072,6 +7084,7 @@ void netif_tx_stop_all_queues(struct net_device *dev) ...@@ -7072,6 +7084,7 @@ void netif_tx_stop_all_queues(struct net_device *dev)
for (i = 0; i < dev->num_tx_queues; i++) { for (i = 0; i < dev->num_tx_queues; i++) {
struct netdev_queue *txq = netdev_get_tx_queue(dev, i); struct netdev_queue *txq = netdev_get_tx_queue(dev, i);
netif_tx_stop_queue(txq); netif_tx_stop_queue(txq);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment