File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1770,6 +1770,9 @@ static int virtio_mem_probe(struct virtio_device *vdev)
1770
1770
struct virtio_mem * vm ;
1771
1771
int rc = - EINVAL ;
1772
1772
1773
+ BUILD_BUG_ON (sizeof (struct virtio_mem_req ) != 24 );
1774
+ BUILD_BUG_ON (sizeof (struct virtio_mem_resp ) != 10 );
1775
+
1773
1776
vdev -> priv = vm = kzalloc (sizeof (* vm ), GFP_KERNEL );
1774
1777
if (!vm )
1775
1778
return - ENOMEM ;
Original file line number Diff line number Diff line change 103
103
struct virtio_mem_req_plug {
104
104
__virtio64 addr ;
105
105
__virtio16 nb_blocks ;
106
+ __virtio16 padding [3 ];
106
107
};
107
108
108
109
struct virtio_mem_req_unplug {
109
110
__virtio64 addr ;
110
111
__virtio16 nb_blocks ;
112
+ __virtio16 padding [3 ];
111
113
};
112
114
113
115
struct virtio_mem_req_state {
114
116
__virtio64 addr ;
115
117
__virtio16 nb_blocks ;
118
+ __virtio16 padding [3 ];
116
119
};
117
120
118
121
struct virtio_mem_req {
You can’t perform that action at this time.
0 commit comments