Commit cef6d744 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Jiang Dongxu
Browse files

vhost-vdpa: vhost_vdpa_alloc_domain() should be using a const struct bus_type *

mainline inclusion
from mainline-v6.4-rc1
commit 94a11504
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I86ITO
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=94a1150421940ff2e8113b5fa6837774777d5b3d

----------------------------------------------------------------------

The function, vhost_vdpa_alloc_domain(), has a pointer to a struct
bus_type, but it should be constant as the function it passes it to
expects it to be const, and the vhost code does not modify it in any
way.

Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: kvm@vger.kernel.org
Cc: virtualization@lists.linux-foundation.org
Cc: netdev@vger.kernel.org
Link: https://lore.kernel.org/r/20230313182918.1312597-31-gregkh@linuxfoundation.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarjiangdongxu <jiangdongxu1@huawei.com>
parent 547018ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment