[dpdk-dev] [PATCH] net/tap: fix compilation issue with old kernels

Ferruh Yigit ferruh.yigit at intel.com
Thu May 7 14:56:01 CEST 2020


On 5/7/2020 10:45 AM, Raslan Darawsheh wrote:
> With old kernels that don't have support for extended ack
> the variable one is not used which will cause a compilation
> failure:
> drivers/net/tap/tap_netlink.c:48:6:
> error: unused variable 'one' [-Werror=unused-variable]
>   int one = 1;
>       ^~~
> cc1: all warnings being treated as errors
> Fixes: f11e38d90980 ("net/tap: use netlink extended ack support")
> Cc: stephen at networkplumber.org
> 
> Signed-off-by: Raslan Darawsheh <rasland at mellanox.com>

Thanks for reporting and fixing the issue.

Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>

Squashed into relevant commit in next-net, thanks.


More information about the dev mailing list