diff options
| author | Arnd Bergmann <[email protected]> | 2019-03-06 11:05:49 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-03-08 23:17:03 +0000 |
| commit | 81bf7bbeabd241326f4edc97f4f5ba366f21cbe0 (patch) | |
| tree | 718a0af2c130a4e8676ca569872f19ca98e632fc /net/ipv4/tcp_input.c | |
| parent | vsock/virtio: fix kernel panic from virtio_transport_reset_no_sock (diff) | |
| download | kernel-81bf7bbeabd241326f4edc97f4f5ba366f21cbe0.tar.gz kernel-81bf7bbeabd241326f4edc97f4f5ba366f21cbe0.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 <[email protected]>
Acked-by: Jason Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions
