From: Peng Li Date: Tue, 9 Jan 2018 06:50:59 +0000 (+0800) Subject: net: hns3: report the function type the same line with hns3_nic_get_stats64 X-Git-Tag: for-linus-20180210~31^2~200^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=6c88d9d7eee0f1a5ac982bebca54a3a322876fb3;p=linux-2.6-block.git net: hns3: report the function type the same line with hns3_nic_get_stats64 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index b23107d7821f..14c7625c6f19 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -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;