]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: hns3: report the function type the same line with hns3_nic_get_stats64
authorPeng Li <lipeng321@huawei.com>
Tue, 9 Jan 2018 06:50:59 +0000 (14:50 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:47:36 +0000 (10:47 -0500)
BugLink: http://bugs.launchpad.net/bugs/1756097
The function type should be on the same line with the function
name, or it may cause display error if a patch edit the
function. There is am example following:
https://www.spinics.net/lists/netdev/msg476141.html

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 6c88d9d7eee0f1a5ac982bebca54a3a322876fb3)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

index b23107d7821f800d19b4536ccc07289398581116..14c7625c6f194e3d416152df9a83254eeab49e4a 100644 (file)
@@ -1126,8 +1126,8 @@ static int hns3_nic_set_features(struct net_device *netdev,
        return 0;
 }
 
-static void
-hns3_nic_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats)
+static void hns3_nic_get_stats64(struct net_device *netdev,
+                                struct rtnl_link_stats64 *stats)
 {
        struct hns3_nic_priv *priv = netdev_priv(netdev);
        int queue_num = priv->ae_handle->kinfo.num_tqps;