vduse: make vduse_class constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 14:30:44 +0000 (16:30 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 1 Nov 2023 13:19:59 +0000 (09:19 -0400)
commit484f0a071f8d482649eaf025dee7b76a7202fec9
treec93ce10f767a8fc554c5d4059b8134b3bd5dff95
parent5ff1f51eefb1cd2c20c3f49538a64c09a1cc98be
vduse: make vduse_class constant

Now that the driver core allows for struct class to be in read-only
memory, we should make all 'class' structures declared at build time
placing them into read-only memory, instead of having to be dynamically
allocated at runtime.

Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Cc: Xie Yongji <xieyongji@bytedance.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Message-Id: <2023100643-tricolor-citizen-6c2d@gregkh>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Xie Yongji <xieyongji@bytedance.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/vdpa_user/vduse_dev.c