Commit 6062829f authored by Amit Shah's avatar Amit Shah Committed by Rusty Russell

virtio: rng: re-arrange struct elements for better packing

Re-arrange the elements of the virtrng_info struct to pack it better.
Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 373445d0
...@@ -30,11 +30,11 @@ static DEFINE_IDA(rng_index_ida); ...@@ -30,11 +30,11 @@ static DEFINE_IDA(rng_index_ida);
struct virtrng_info { struct virtrng_info {
struct hwrng hwrng; struct hwrng hwrng;
struct virtqueue *vq; struct virtqueue *vq;
unsigned int data_avail;
struct completion have_data; struct completion have_data;
bool busy;
char name[25]; char name[25];
unsigned int data_avail;
int index; int index;
bool busy;
}; };
static bool probe_done; static bool probe_done;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment