Re: [PATCH] net: Provide stub for __netif_set_xps_queue if there is no CONFIG_XPS

From: David Miller
Date: Fri Aug 10 2018 - 13:22:48 EST


From: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
Date: Fri, 10 Aug 2018 10:47:43 +0200

> Building virtio_net driver without CONFIG_XPS fails with:
>
> drivers/net/virtio_net.c: In function ʽvirtnet_set_affinityʼ:
> drivers/net/virtio_net.c:1910:3: error: implicit declaration of function ʽ__netif_set_xps_queueʼ [-Werror=implicit-function-declaration]
> __netif_set_xps_queue(vi->dev, mask, i, false);
> ^
> Fixes: 4d99f6602cb5 ("net: allow to call netif_reset_xps_queues() under cpus_read_lock")
> Signed-off-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>

Applied, thank you.