OSDN Git Service

virtio_config: disallow native type fields (again)
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:41 +0000 (11:08 -0400)
commit14191c15ab9d87e60d2ebbfbf6df83d546152af1
treeae675e4e2c6c4a5cd7caaed061ed858f81b0310e
parenta5b90f2db8e0ef6504695cbd36a65fd8296338ee
virtio_config: disallow native type fields (again)

_Generic version allowed __uXX types but that is no longer necessary:

Transitional devices should all use __virtioXX types (and __leXX for
fields not present in the 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