tools/virtio: fix build caused by virtio_ring changes
authorShunsuke Mie <mie@igel.co.jp>
Mon, 17 Apr 2023 02:20:37 +0000 (11:20 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 21 Apr 2023 07:02:35 +0000 (03:02 -0400)
commite9c4962c5d69b8a238bb8bd51e8fdce39be13e5b
treeb4e48a42baa39fb248f78dfbb03d796364783674
parent38fc29ea754711e9a8c4e9ca2678ab41353a4662
tools/virtio: fix build caused by virtio_ring changes

Fix the build dependency for virtio_test. The virtio_ring that is used from
the test requires container_of_const(). Change to use container_of.h kernel
header directly and adapt related codes.

Signed-off-by: Shunsuke Mie <mie@igel.co.jp>
Message-Id: <20230417022037.917668-2-mie@igel.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tools/include/linux/types.h
tools/virtio/linux/compiler.h
tools/virtio/linux/kernel.h
tools/virtio/linux/uaccess.h