summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2014-07-27 07:33:01 +0930
committerRusty Russell <rusty@rustcorp.com.au>2014-07-27 21:07:18 +0930
commit6062829fcdcae4518436f51336c0e05bd1f04806 (patch)
tree2866a5a19e29333cb1225674d62c3f77bfdc712a
parent373445d02befffe2efe31ebf1ab7e566d877e3ee (diff)
downloadop-kernel-dev-6062829fcdcae4518436f51336c0e05bd1f04806.zip
op-kernel-dev-6062829fcdcae4518436f51336c0e05bd1f04806.tar.gz
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: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-rw-r--r--drivers/char/hw_random/virtio-rng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/hw_random/virtio-rng.c b/drivers/char/hw_random/virtio-rng.c
index d8ffebd..a156284 100644
--- a/drivers/char/hw_random/virtio-rng.c
+++ b/drivers/char/hw_random/virtio-rng.c
@@ -30,11 +30,11 @@ static DEFINE_IDA(rng_index_ida);
struct virtrng_info {
struct hwrng hwrng;
struct virtqueue *vq;
- unsigned int data_avail;
struct completion have_data;
- bool busy;
char name[25];
+ unsigned int data_avail;
int index;
+ bool busy;
};
static bool probe_done;
OpenPOWER on IntegriCloud