diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-03-06 12:05:49 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-03-06 17:32:37 +0100 |
commit | cfdbb4ed31aa777d59b288810f66eb06249ee5b7 (patch) | |
tree | e96d7bb7ea9db5f57632c7652a44b4d3250e8cba /mm | |
parent | virtio: hint if callbacks surprisingly might sleep (diff) | |
download | linux-cfdbb4ed31aa777d59b288810f66eb06249ee5b7.tar.xz linux-cfdbb4ed31aa777d59b288810f66eb06249ee5b7.zip |
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>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions