diff options
author | Li Wang <li.wang@windriver.com> | 2020-09-15 02:08:09 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-10-21 10:34:10 -0400 |
commit | 5e5e8736ad2ee1be5d6162177317857460c857c2 (patch) | |
tree | 59696d8515fd9ccb10ccf957e7ae689ce4d329fc /drivers/vhost/vhost.h | |
parent | 7ab4de60028e0e9669b72a5f69f2080f98069b04 (diff) |
vhost: reduce stack usage in log_used
Fix the warning: [-Werror=-Wframe-larger-than=]
drivers/vhost/vhost.c: In function log_used:
drivers/vhost/vhost.c:1906:1:
warning: the frame size of 1040 bytes is larger than 1024 bytes
Signed-off-by: Li Wang <li.wang@windriver.com>
Link: https://lore.kernel.org/r/1600106889-25013-1-git-send-email-li.wang@windriver.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'drivers/vhost/vhost.h')
-rw-r--r-- | drivers/vhost/vhost.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index 9032d3c2a9f4..5fe4b478c215 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -123,6 +123,7 @@ struct vhost_virtqueue { /* Log write descriptors */ void __user *log_base; struct vhost_log *log; + struct iovec log_iov[64]; /* Ring endianness. Defaults to legacy native endianness. * Set to true when starting a modern virtio device. */ |