diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2020-04-09 16:26:21 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-04-17 06:05:30 -0400 |
commit | 425a5070239aac22ed8fa4732eca624293f88546 (patch) | |
tree | 25596d4b8db3939543e3e3680187fd2acbecc16a /include | |
parent | 5038a5679094ca21980b668f8d86b4dfb6ebbf0d (diff) | |
download | linux-stable-425a5070239aac22ed8fa4732eca624293f88546.tar.gz linux-stable-425a5070239aac22ed8fa4732eca624293f88546.tar.bz2 linux-stable-425a5070239aac22ed8fa4732eca624293f88546.zip |
vdpa: allow a 32 bit vq alignment
get_vq_align returns u16 now, but that's not enough for
systems/devices with 64K pages. All callers assign it to
a u32 variable anyway, so let's just change the return
value type to u32.
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/vdpa.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/vdpa.h b/include/linux/vdpa.h index 733acfb7ef84..5453af87a33e 100644 --- a/include/linux/vdpa.h +++ b/include/linux/vdpa.h @@ -164,7 +164,7 @@ struct vdpa_config_ops { u64 (*get_vq_state)(struct vdpa_device *vdev, u16 idx); /* Device ops */ - u16 (*get_vq_align)(struct vdpa_device *vdev); + u32 (*get_vq_align)(struct vdpa_device *vdev); u64 (*get_features)(struct vdpa_device *vdev); int (*set_features)(struct vdpa_device *vdev, u64 features); void (*set_config_cb)(struct vdpa_device *vdev, |