Files
linux/drivers/vhost
Arnd Bergmann 81bf7bbeab vhost: silence an unused-variable warning
On some architectures, the MMU can be disabled, leading to access_ok()
becoming an empty macro that does not evaluate its size argument,
which in turn produces an unused-variable warning:

drivers/vhost/vhost.c:1191:9: error: unused variable 's' [-Werror,-Wunused-variable]
        size_t s = vhost_has_feature(vq, VIRTIO_RING_F_EVENT_IDX) ? 2 : 0;

Mark the variable as __maybe_unused to shut up that warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-08 15:17:03 -08:00
..
2016-08-02 16:54:28 +03:00
2019-01-28 22:53:09 -08:00
2019-01-28 22:53:09 -08:00
2018-06-12 16:19:22 -07:00
2019-01-28 22:53:09 -08:00
2019-01-28 22:53:09 -08:00