[dpdk-dev] [dpdk-stable] [PATCH v2] kni: fix build with gcc 8.1

Thomas Monjalon thomas at monjalon.net
Tue Jun 26 11:54:47 CEST 2018


26/06/2018 11:02, Ferruh Yigit:
> --- a/kernel/linux/kni/ethtool/igb/igb_ethtool.c
> +++ b/kernel/linux/kni/ethtool/igb/igb_ethtool.c
> @@ -811,9 +811,10 @@ static void igb_get_drvinfo(struct net_device *netdev,
>  	strncpy(drvinfo->driver,  igb_driver_name, sizeof(drvinfo->driver) - 1);
>  	strncpy(drvinfo->version, igb_driver_version, sizeof(drvinfo->version) - 1);
>  -	strncpy(drvinfo->fw_version, adapter->fw_version,
> -		sizeof(drvinfo->fw_version) - 1);

There is a leading space before the minus of first line.




More information about the dev mailing list