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
..
2019-03-04 19:16:09 -08:00
2019-01-10 13:39:19 +02:00
2018-12-29 08:20:44 -07:00
2019-02-20 11:40:21 -08:00
2019-02-10 10:39:37 -08:00
2018-12-10 10:17:45 +01:00
2019-03-04 15:32:51 +00:00
2019-02-28 14:05:33 +10:00
2019-01-09 19:20:31 -05:00
2019-03-01 09:13:04 -08:00
2019-03-04 19:33:04 -08:00
2019-02-15 09:12:28 -08:00
2019-01-05 11:30:37 -08:00
2018-12-28 16:52:18 -08:00
2019-02-01 15:53:54 +01:00
2019-03-01 09:50:10 +01:00
2019-03-04 19:23:56 -08:00
2018-12-06 15:45:46 +01:00
2019-02-08 15:32:10 -08:00
2019-01-05 11:23:17 -08:00
2018-12-29 13:03:29 -08:00
2018-12-24 12:06:56 +01:00
2019-01-01 13:24:31 -08:00
2019-03-02 11:39:54 -08:00
2019-03-04 15:32:51 +00:00
2019-02-08 10:49:55 -08:00
2018-12-28 20:54:57 -08:00
2019-01-25 12:58:40 -10:00
2018-11-11 12:58:27 -08:00
2018-12-29 13:40:29 -08:00
2018-11-12 10:33:49 +01:00