From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id BFF2558DD for ; Fri, 5 Jun 2015 04:58:52 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 04 Jun 2015 19:58:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,555,1427785200"; d="scan'208";a="705670840" Received: from pgsmsx106.gar.corp.intel.com ([10.221.44.98]) by orsmga001.jf.intel.com with ESMTP; 04 Jun 2015 19:58:49 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by PGSMSX106.gar.corp.intel.com (10.221.44.98) with Microsoft SMTP Server (TLS) id 14.3.224.2; Fri, 5 Jun 2015 10:58:49 +0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.94]) by SHSMSX101.ccr.corp.intel.com ([10.239.4.153]) with mapi id 14.03.0224.002; Fri, 5 Jun 2015 10:58:47 +0800 From: "Zhang, Helin" To: Stephen Hemminger , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 1/9] kni: fix whitespace Thread-Index: AQHQntTr0VCiOH8MG0mc+w025KKIXJ2dOVJg Date: Fri, 5 Jun 2015 02:58:47 +0000 Message-ID: References: <1433429007-4640-1-git-send-email-stephen@networkplumber.org> <1433429007-4640-2-git-send-email-stephen@networkplumber.org> In-Reply-To: <1433429007-4640-2-git-send-email-stephen@networkplumber.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Stephen Hemminger Subject: Re: [dpdk-dev] [PATCH 1/9] kni: fix whitespace X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2015 02:58:53 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Stephen Hemminger > Sent: Thursday, June 4, 2015 10:43 PM > To: dev@dpdk.org > Cc: Stephen Hemminger > Subject: [dpdk-dev] [PATCH 1/9] kni: fix whitespace >=20 > From: Stephen Hemminger >=20 > Ran this code base through a script which: > - removes trailing whitespace > - removes space before tabs > - removes blank lines at end of file >=20 > Signed-off-by: Stephen Hemminger Acked-by: Helin Zhang > --- > .../linuxapp/kni/ethtool/igb/e1000_api.c | 1 - > .../linuxapp/kni/ethtool/igb/e1000_manage.c | 2 - > .../linuxapp/kni/ethtool/igb/e1000_mbx.c | 1 - > .../linuxapp/kni/ethtool/igb/e1000_nvm.c | 2 - > lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h | 2 +- > .../linuxapp/kni/ethtool/igb/igb_debugfs.c | 1 - > .../linuxapp/kni/ethtool/igb/igb_ethtool.c | 26 ++++++------ > lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c | 2 +- > .../linuxapp/kni/ethtool/igb/igb_param.c | 3 +- > .../linuxapp/kni/ethtool/igb/igb_procfs.c | 46 > +++++++++++----------- > .../linuxapp/kni/ethtool/igb/igb_regtest.h | 2 - > lib/librte_eal/linuxapp/kni/ethtool/igb/igb_vmdq.c | 1 - > lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h | 4 +- > .../linuxapp/kni/ethtool/igb/kcompat_ethtool.c | 11 +++--- > .../linuxapp/kni/ethtool/ixgbe/ixgbe_82599.c | 1 - > .../linuxapp/kni/ethtool/ixgbe/ixgbe_api.c | 1 - > .../linuxapp/kni/ethtool/ixgbe/ixgbe_common.c | 1 - > .../linuxapp/kni/ethtool/ixgbe/ixgbe_main.c | 5 --- > .../linuxapp/kni/ethtool/ixgbe/ixgbe_sriov.h | 1 - > .../linuxapp/kni/ethtool/ixgbe/ixgbe_x540.c | 7 ++-- > .../linuxapp/kni/ethtool/ixgbe/kcompat.h | 2 +- > lib/librte_eal/linuxapp/kni/kni_dev.h | 1 - > lib/librte_eal/linuxapp/kni/kni_misc.c | 1 - > lib/librte_eal/linuxapp/kni/kni_vhost.c | 3 +- > lib/librte_kni/rte_kni.h | 1 - > 25 files changed, 50 insertions(+), 78 deletions(-) >=20 > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_api.c > b/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_api.c > index b1d748f..6095d3b 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_api.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_api.c > @@ -1157,4 +1157,3 @@ s32 e1000_init_thermal_sensor_thresh(struct > e1000_hw *hw) >=20 > return E1000_SUCCESS; > } > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_manage.c > b/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_manage.c > index e1a2abe..a170039 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_manage.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_manage.c > @@ -552,5 +552,3 @@ s32 e1000_load_firmware(struct e1000_hw *hw, u8 > *buffer, u32 length) >=20 > return E1000_SUCCESS; > } > - > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_mbx.c > b/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_mbx.c > index 6d004b6..3ef0d98 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_mbx.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_mbx.c > @@ -523,4 +523,3 @@ s32 e1000_init_mbx_params_pf(struct e1000_hw *hw) > return E1000_SUCCESS; > } > } > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_nvm.c > b/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_nvm.c > index ff42198..6188d00 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_nvm.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_nvm.c > @@ -963,5 +963,3 @@ etrack_id: > } > return; > } > - > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h > b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h > index a582f52..e5554ca 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h > @@ -229,7 +229,7 @@ struct igb_lro_stats { > */ > struct igb_lrohdr { > struct iphdr iph; > - struct tcphdr th; > + struct tcphdr th; > __be32 ts[0]; > }; >=20 > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_debugfs.c > b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_debugfs.c > index d33c814..c07f9f5 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_debugfs.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_debugfs.c > @@ -26,4 +26,3 @@ >=20 > ************************************************************* > ******************/ >=20 > #include "igb.h" > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_ethtool.c > b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_ethtool.c > index f3c48b2..af7e68a 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_ethtool.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_ethtool.c > @@ -208,7 +208,7 @@ static int igb_get_settings(struct net_device *netdev= , > struct ethtool_cmd *ecmd) >=20 > ecmd->port =3D PORT_FIBRE; > ecmd->transceiver =3D XCVR_EXTERNAL; > - } > + } >=20 > if (hw->mac.autoneg !=3D 1) > ecmd->advertising &=3D ~(ADVERTISED_Pause | @@ -1377,7 +1377,7 > @@ static int igb_integrated_phy_loopback(struct igb_adapter *adapter) > } > } else { > /* enable MII loopback */ > - if (hw->phy.type =3D=3D e1000_phy_82580) > + if (hw->phy.type =3D=3D e1000_phy_82580) > e1000_write_phy_reg(hw, I82577_PHY_LBK_CTRL, 0x8041); > } >=20 > @@ -1403,7 +1403,7 @@ static int igb_integrated_phy_loopback(struct > igb_adapter *adapter) > */ > if (hw->phy.type =3D=3D e1000_phy_m88) > igb_phy_disable_receiver(adapter); > - > + > mdelay(500); > return 0; > } > @@ -1434,7 +1434,7 @@ static int igb_setup_loopback_test(struct igb_adapt= er > *adapter) > E1000_WRITE_REG(hw, E1000_MPHY_ADDR_CTL, > reg); >=20 > reg =3D E1000_READ_REG(hw, E1000_MPHY_DATA); > - reg |=3D E1000_MPHY_PCS_CLK_REG_DIGINELBEN; > + reg |=3D E1000_MPHY_PCS_CLK_REG_DIGINELBEN; > E1000_WRITE_REG(hw, E1000_MPHY_DATA, reg); > } >=20 > @@ -1489,7 +1489,7 @@ static void igb_loopback_cleanup(struct igb_adapter > *adapter) > u16 phy_reg; >=20 > if ((hw->device_id =3D=3D E1000_DEV_ID_DH89XXCC_SGMII) || > - (hw->device_id =3D=3D E1000_DEV_ID_DH89XXCC_SERDES) || > + (hw->device_id =3D=3D E1000_DEV_ID_DH89XXCC_SERDES) || > (hw->device_id =3D=3D E1000_DEV_ID_DH89XXCC_BACKPLANE) || > (hw->device_id =3D=3D E1000_DEV_ID_DH89XXCC_SFP)) { > u32 reg; > @@ -1498,13 +1498,13 @@ static void igb_loopback_cleanup(struct igb_adapt= er > *adapter) > reg =3D E1000_READ_REG(hw, E1000_MPHY_ADDR_CTL); > reg =3D (reg & E1000_MPHY_ADDR_CTL_OFFSET_MASK ) | > E1000_MPHY_PCS_CLK_REG_OFFSET; > - E1000_WRITE_REG(hw, E1000_MPHY_ADDR_CTL, reg); > + E1000_WRITE_REG(hw, E1000_MPHY_ADDR_CTL, reg); >=20 > reg =3D E1000_READ_REG(hw, E1000_MPHY_DATA); > - reg &=3D ~E1000_MPHY_PCS_CLK_REG_DIGINELBEN; > - E1000_WRITE_REG(hw, E1000_MPHY_DATA, reg); > + reg &=3D ~E1000_MPHY_PCS_CLK_REG_DIGINELBEN; > + E1000_WRITE_REG(hw, E1000_MPHY_DATA, reg); > } > - > + > rctl =3D E1000_READ_REG(hw, E1000_RCTL); > rctl &=3D ~(E1000_RCTL_LBM_TCVR | E1000_RCTL_LBM_MAC); > E1000_WRITE_REG(hw, E1000_RCTL, rctl); @@ -1776,7 +1776,7 @@ static > void igb_diag_test(struct net_device *netdev, >=20 > /* power up link for link test */ > igb_power_up_link(adapter); > - > + > /* Link test performed before hardware reset so autoneg doesn't > * interfere with test result */ > if (igb_link_test(adapter, &data[4])) @@ -1981,7 +1981,7 @@ static int > igb_set_coalesce(struct net_device *netdev, > if (ec->rx_coalesce_usecs =3D=3D 0) { > adapter->dmac =3D IGB_DMAC_DISABLE; > } > - > + > /* convert to rate of irq's per second */ > if (ec->rx_coalesce_usecs && ec->rx_coalesce_usecs <=3D 3) > adapter->rx_itr_setting =3D ec->rx_coalesce_usecs; @@ -2416,7 +2416,7 > @@ static void igb_get_dmac(struct net_device *netdev, { > struct igb_adapter *adapter =3D netdev_priv(netdev); > edata->data =3D adapter->dmac; > - > + > return; > } > #endif > @@ -2855,5 +2855,3 @@ void igb_set_ethtool_ops(struct net_device > *netdev) } #endif /* HAVE_RHEL6_ETHTOOL_OPS_EXT_STRUCT */ > #endif /* SIOCETHTOOL */ > - > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c > b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c > index bc3c6a3..fa24d16 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c > @@ -9500,7 +9500,7 @@ static void igb_vmm_control(struct igb_adapter > *adapter) > } >=20 > /* enable replication and loopback support */ > - count =3D adapter->vfs_allocated_count || adapter->vmdq_pools; > + count =3D adapter->vfs_allocated_count || adapter->vmdq_pools; > if (adapter->flags & IGB_FLAG_LOOPBACK_ENABLE && count) > e1000_vmdq_set_loopback_pf(hw, 1); > e1000_vmdq_set_anti_spoofing_pf(hw, > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_param.c > b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_param.c > index 14439ad..f79ce7c 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_param.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_param.c > @@ -167,7 +167,7 @@ IGB_PARAM(max_vfs, "Number of Virtual Functions: 0 = =3D > disable, 1-7 enable, defaul > /* MDD (Enable Malicious Driver Detection) > * > * Only available when SR-IOV is enabled - max_vfs is greater than 0 > - * > + * > * Valid Range: 0, 1 > * > * Default Value: 1 > @@ -845,4 +845,3 @@ void igb_check_options(struct igb_adapter *adapter) > #endif > } > } > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_procfs.c > b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_procfs.c > index 2e7850c..4868202 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_procfs.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_procfs.c > @@ -63,12 +63,12 @@ bool igb_thermal_present(struct igb_adapter *adapter) > status =3D hw->mac.ops.init_thermal_sensor_thresh(hw); > if (status !=3D E1000_SUCCESS) > return false; > - > + > return true; > } >=20 >=20 > -static int igb_macburn(char *page, char **start, off_t off, int count, > +static int igb_macburn(char *page, char **start, off_t off, int count, > int *eof, void *data) > { > struct e1000_hw *hw; > @@ -89,7 +89,7 @@ static int igb_macburn(char *page, char **start, off_t = off, int > count, > (unsigned int)hw->mac.perm_addr[5]); } >=20 > -static int igb_macadmn(char *page, char **start, off_t off, > +static int igb_macadmn(char *page, char **start, off_t off, > int count, int *eof, void *data) { > struct e1000_hw *hw; > @@ -139,7 +139,7 @@ static int igb_porttype(char *page, char **start, off= _t off, > int count, > test_bit(__IGB_DOWN, &adapter->state)); } >=20 > -static int igb_therm_location(char *page, char **start, off_t off, > +static int igb_therm_location(char *page, char **start, off_t off, > int count, int *eof, void *data) { > struct igb_therm_proc_data *therm_data =3D @@ -151,7 +151,7 @@ static i= nt > igb_therm_location(char *page, char **start, off_t off, > return snprintf(page, count, "%d\n", therm_data->sensor_data->location)= ; > } >=20 > -static int igb_therm_maxopthresh(char *page, char **start, off_t off, > +static int igb_therm_maxopthresh(char *page, char **start, off_t off, > int count, int *eof, void *data) { > struct igb_therm_proc_data *therm_data =3D @@ -164,7 +164,7 @@ static i= nt > igb_therm_maxopthresh(char *page, char **start, off_t off, > therm_data->sensor_data->max_op_thresh); > } >=20 > -static int igb_therm_cautionthresh(char *page, char **start, off_t off, > +static int igb_therm_cautionthresh(char *page, char **start, off_t off, > int count, int *eof, void *data) { > struct igb_therm_proc_data *therm_data =3D @@ -177,7 +177,7 @@ static i= nt > igb_therm_cautionthresh(char *page, char **start, off_t off, > therm_data->sensor_data->caution_thresh); > } >=20 > -static int igb_therm_temp(char *page, char **start, off_t off, > +static int igb_therm_temp(char *page, char **start, off_t off, > int count, int *eof, void *data) { > s32 status; > @@ -188,7 +188,7 @@ static int igb_therm_temp(char *page, char **start, o= ff_t > off, > return snprintf(page, count, "error: no therm_data\n"); >=20 > status =3D e1000_get_thermal_sensor_data(therm_data->hw); > - if (status !=3D E1000_SUCCESS) > + if (status !=3D E1000_SUCCESS) > snprintf(page, count, "error: status %d returned\n", status); >=20 > return snprintf(page, count, "%d\n", therm_data->sensor_data->temp); > @@ -211,7 +211,7 @@ struct igb_proc_type igb_internal_entries[] =3D { > {"location", &igb_therm_location}, > {"temp", &igb_therm_temp}, > {"cautionthresh", &igb_therm_cautionthresh}, > - {"maxopthresh", &igb_therm_maxopthresh}, > + {"maxopthresh", &igb_therm_maxopthresh}, > {"", NULL} > }; >=20 > @@ -243,7 +243,7 @@ void igb_del_proc_entries(struct igb_adapter *adapter= ) > if (igb_proc_entries[index].read =3D=3D NULL) > break; > remove_proc_entry(igb_proc_entries[index].name, > - adapter->info_dir); > + adapter->info_dir); > } > remove_proc_entry("info", adapter->eth_dir); > } > @@ -253,12 +253,12 @@ void igb_del_proc_entries(struct igb_adapter > *adapter) } >=20 > /* called from igb_main.c */ > -void igb_procfs_exit(struct igb_adapter *adapter) > +void igb_procfs_exit(struct igb_adapter *adapter) > { > igb_del_proc_entries(adapter); > } >=20 > -int igb_procfs_topdir_init(void) > +int igb_procfs_topdir_init(void) > { > igb_top_dir =3D proc_mkdir("driver/igb", NULL); > if (igb_top_dir =3D=3D NULL) > @@ -267,13 +267,13 @@ int igb_procfs_topdir_init(void) > return 0; > } >=20 > -void igb_procfs_topdir_exit(void) > +void igb_procfs_topdir_exit(void) > { > remove_proc_entry("driver/igb", NULL); } >=20 > /* called from igb_main.c */ > -int igb_procfs_init(struct igb_adapter *adapter) > +int igb_procfs_init(struct igb_adapter *adapter) > { > int rc =3D 0; > int i; > @@ -305,10 +305,10 @@ int igb_procfs_init(struct igb_adapter *adapter) > if (igb_proc_entries[index].read =3D=3D NULL) { > break; > } > - if (!(create_proc_read_entry(igb_proc_entries[index].name, > - 0444, > - adapter->info_dir, > - igb_proc_entries[index].read, > + if (!(create_proc_read_entry(igb_proc_entries[index].name, > + 0444, > + adapter->info_dir, > + igb_proc_entries[index].read, > adapter))) { >=20 > rc =3D -ENOMEM; > @@ -337,14 +337,14 @@ int igb_procfs_init(struct igb_adapter *adapter) > * will be needing > */ > adapter->therm_data[i].hw =3D &adapter->hw; > - adapter->therm_data[i].sensor_data =3D > + adapter->therm_data[i].sensor_data =3D > &adapter->hw.mac.thermal_sensor_data.sensor[i]; >=20 > if (!(create_proc_read_entry( > - igb_internal_entries[index].name, > - 0444, > - adapter->therm_dir[i], > - igb_internal_entries[index].read, > + igb_internal_entries[index].name, > + 0444, > + adapter->therm_dir[i], > + igb_internal_entries[index].read, > &adapter->therm_data[i]))) { > rc =3D -ENOMEM; > goto fail; > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_regtest.h > b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_regtest.h > index a6761db..18da64a 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_regtest.h > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_regtest.h > @@ -247,5 +247,3 @@ static struct igb_reg_test reg_test_82575[] =3D { > 0xFFFFFFFF, 0xFFFFFFFF }, > { 0, 0, 0, 0 } > }; > - > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_vmdq.c > b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_vmdq.c > index 90d96e6..015c895 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_vmdq.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_vmdq.c > @@ -434,4 +434,3 @@ void igb_vmdq_set_ethtool_ops(struct net_device > *netdev) >=20 >=20 > #endif /* CONFIG_IGB_VMDQ_NETDEV */ > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h > b/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h > index 54d1f86..44b9ebf 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h > @@ -1184,7 +1184,7 @@ static inline struct device *pci_dev_to_dev(struct > pci_dev *pdev) > return (struct device *) pdev; > } >=20 > -#define pdev_printk(lvl, pdev, fmt, args...) \ > +#define pdev_printk(lvl, pdev, fmt, args...) \ > printk("%s %s: " fmt, lvl, pci_name(pdev), ## args) > #define dev_err(dev, fmt, args...) \ > pdev_printk(KERN_ERR, to_pci_dev(dev), fmt, ## args) @@ -3807,7 +3807,7 > @@ static inline bool is_link_local_ether_addr(const u8 *addr) > pos =3D hlist_entry_safe((pos)->member.next, typeof(*(pos)), > member)) >=20 > #undef hlist_for_each_entry_safe > -#define hlist_for_each_entry_safe(pos, n, head, member) \ > +#define hlist_for_each_entry_safe(pos, n, head, member) \ > for (pos =3D hlist_entry_safe((head)->first, typeof(*pos), member); \ > pos && ({ n =3D pos->member.next; 1; }); \ > pos =3D hlist_entry_safe(n, typeof(*pos), member)) diff --git > a/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat_ethtool.c > b/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat_ethtool.c > index 3adf869..e1a8938 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat_ethtool.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat_ethtool.c > @@ -37,11 +37,11 @@ > * > * Modification by sfeldma@pobox.com to work as backward compat > * solution for pre-ethtool_ops kernels. > - * - copied struct ethtool_ops from ethtool.h > - * - defined SET_ETHTOOL_OPS > - * - put in some #ifndef NETIF_F_xxx wrappers > - * - changes refs to dev->ethtool_ops to ethtool_ops > - * - changed dev_ethtool to ethtool_ioctl > + * - copied struct ethtool_ops from ethtool.h > + * - defined SET_ETHTOOL_OPS > + * - put in some #ifndef NETIF_F_xxx wrappers > + * - changes refs to dev->ethtool_ops to ethtool_ops > + * - changed dev_ethtool to ethtool_ioctl > * - remove EXPORT_SYMBOL()s > * - added _kc_ prefix in built-in ethtool_op_xxx ops. > */ > @@ -1169,4 +1169,3 @@ int _kc_generic_mii_ioctl(struct mii_if_info *mii_i= f, > return rc; > } > #endif /* > 2.4.6 */ > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_82599.c > b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_82599.c > index 1ad4b76..017dfe1 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_82599.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_82599.c > @@ -2311,4 +2311,3 @@ release_i2c_access: >=20 > return status; > } > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_api.c > b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_api.c > index 9a0a43e..ef7ce62 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_api.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_api.c > @@ -1155,4 +1155,3 @@ void ixgbe_release_swfw_semaphore(struct ixgbe_hw > *hw, u16 mask) > if (hw->mac.ops.release_swfw_sync) > hw->mac.ops.release_swfw_sync(hw, mask); } > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_common.c > b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_common.c > index a0a0046..93659ca 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_common.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_common.c > @@ -4080,4 +4080,3 @@ s32 ixgbe_init_thermal_sensor_thresh_generic(struct > ixgbe_hw *hw) > } > return status; > } > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c > b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c > index cb56906..75b3663 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c > @@ -2968,8 +2968,3 @@ void ewarn(struct ixgbe_hw *hw, const char *st, u32 > status) >=20 > netif_warn(adapter, drv, adapter->netdev, "%s", st); } > - > - > - > - > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_sriov.h > b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_sriov.h > index b1cc9d0..5e3559f 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_sriov.h > +++ b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_sriov.h > @@ -71,4 +71,3 @@ void ixgbe_dump_registers(struct ixgbe_adapter *adapter= ); > #define IXGBE_DEV_ID_X540_VF 0x1515 >=20 > #endif /* _IXGBE_SRIOV_H_ */ > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_x540.c > b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_x540.c > index efffe6f..b99d9e8 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_x540.c > +++ b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_x540.c > @@ -188,12 +188,12 @@ s32 ixgbe_reset_hw_X540(struct ixgbe_hw *hw) { > s32 status =3D 0; >=20 > - /* > - * Userland DPDK takes the ownershiop of device > + /* > + * Userland DPDK takes the ownershiop of device > * Kernel driver here used as the simple path for ethtool only > * Won't real reset device anyway > */ > -#if 0 > +#if 0 > u32 ctrl, i; >=20 > /* Call adapter stop to disable tx/rx and clear interrupts */ @@ -935,4 > +935,3 @@ s32 ixgbe_blink_led_stop_X540(struct ixgbe_hw *hw, u32 index) >=20 > return 0; > } > - > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.h > b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.h > index e327d65..bf27579 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.h > +++ b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.h > @@ -1133,7 +1133,7 @@ static inline struct device *pci_dev_to_dev(struct > pci_dev *pdev) > return (struct device *) pdev; > } >=20 > -#define pdev_printk(lvl, pdev, fmt, args...) \ > +#define pdev_printk(lvl, pdev, fmt, args...) \ > printk("%s %s: " fmt, lvl, pci_name(pdev), ## args) > #define dev_err(dev, fmt, args...) \ > pdev_printk(KERN_ERR, to_pci_dev(dev), fmt, ## args) diff --git > a/lib/librte_eal/linuxapp/kni/kni_dev.h b/lib/librte_eal/linuxapp/kni/kni= _dev.h > index e79e472..a0e5cb6 100644 > --- a/lib/librte_eal/linuxapp/kni/kni_dev.h > +++ b/lib/librte_eal/linuxapp/kni/kni_dev.h > @@ -147,4 +147,3 @@ struct kni_vhost_queue { #endif >=20 > #endif > - > diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c > b/lib/librte_eal/linuxapp/kni/kni_misc.c > index 1935d32..2c411e2 100644 > --- a/lib/librte_eal/linuxapp/kni/kni_misc.c > +++ b/lib/librte_eal/linuxapp/kni/kni_misc.c > @@ -607,4 +607,3 @@ MODULE_PARM_DESC(kthread_mode, > " multiple Multiple kernel thread mode enabled.\n" > "\n" > ); > - > diff --git a/lib/librte_eal/linuxapp/kni/kni_vhost.c > b/lib/librte_eal/linuxapp/kni/kni_vhost.c > index 83d3351..e01420a 100644 > --- a/lib/librte_eal/linuxapp/kni/kni_vhost.c > +++ b/lib/librte_eal/linuxapp/kni/kni_vhost.c > @@ -356,7 +356,7 @@ static int > kni_sock_sndmsg(struct kiocb *iocb, struct socket *sock, > struct msghdr *m, size_t total_len) { > - struct kni_vhost_queue *q =3D > + struct kni_vhost_queue *q =3D > container_of(sock->sk, struct kni_vhost_queue, sk); > int vnet_hdr_len =3D 0; > unsigned long len =3D total_len; > @@ -829,4 +829,3 @@ kni_vhost_init(struct kni_dev *kni) >=20 > return 0; > } > - > diff --git a/lib/librte_kni/rte_kni.h b/lib/librte_kni/rte_kni.h index > 44240fe..603e2cd 100644 > --- a/lib/librte_kni/rte_kni.h > +++ b/lib/librte_kni/rte_kni.h > @@ -305,4 +305,3 @@ extern void rte_kni_close(void); #endif >=20 > #endif /* _RTE_KNI_H_ */ > - > -- > 2.1.4