]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_config: disallow native type fields
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 10 Jul 2020 11:55:52 +0000 (07:55 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 15:08:40 +0000 (11:08 -0400)
commit037de2758937a74d4558ba08847405a7deffa2db
tree9345fcb006252fec0d25a4d784a0a24260e332c5
parent24b837e9c582215e0ca4f92a20e7eda7760f5b1f
virtio_config: disallow native type fields

Transitional devices should all use __virtioXX types (and __leXX for
fields not present in legacy devices).
Modern ones should use __leXX.
_uXX type would be a bug.
Let's prevent that.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/linux/virtio_config.h