aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-common.h
diff options
context:
space:
mode:
authorDavid Hildenbrand <[email protected]>2020-05-15 12:14:02 +0200
committerMichael S. Tsirkin <[email protected]>2020-06-04 15:36:52 -0400
commitfce8afd76e3a4d8c59c92f84f8027569fd7031d0 (patch)
tree6e8a0d9ba7798b86e0f71b822948a29866361210 /scripts/gcc-plugins/gcc-common.h
parent72f9525ad76b1ddfe663285805982e9d57c7b2c2 (diff)
virtio-mem: Don't rely on implicit compiler padding for requests
The compiler will add padding after the last member, make that explicit. The size of a request is always 24 bytes. The size of a response always 10 bytes. Add compile-time checks. Cc: "Michael S. Tsirkin" <[email protected]> Cc: Pankaj Gupta <[email protected]> Cc: teawater <[email protected]> Signed-off-by: David Hildenbrand <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions