diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-07-30 16:03:46 -0600 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-07-30 16:03:46 +0930 |
commit | 1842f23c05b6a866be831aa60bc8a8731c58ddd0 (patch) | |
tree | 8047f21d149b3958b5c4278c1a5601ddce9e0e4b /drivers/lguest/lg.h | |
parent | a91d74a3c4de8115295ee87350c13a329164aaaf (diff) | |
download | kernel_samsung_espresso10-1842f23c05b6a866be831aa60bc8a8731c58ddd0.zip kernel_samsung_espresso10-1842f23c05b6a866be831aa60bc8a8731c58ddd0.tar.gz kernel_samsung_espresso10-1842f23c05b6a866be831aa60bc8a8731c58ddd0.tar.bz2 |
lguest and virtio: cleanup struct definitions to Linux style.
I've been doing this for years, and akpm picked me up on it about 12
months ago. lguest partly serves as example code, so let's do it Right.
Also, remove two unused fields in struct vblk_info in the example launcher.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Ingo Molnar <mingo@redhat.com>
Diffstat (limited to 'drivers/lguest/lg.h')
-rw-r--r-- | drivers/lguest/lg.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h index 74c0db6..bc28745 100644 --- a/drivers/lguest/lg.h +++ b/drivers/lguest/lg.h @@ -16,15 +16,13 @@ void free_pagetables(void); int init_pagetables(struct page **switcher_page, unsigned int pages); -struct pgdir -{ +struct pgdir { unsigned long gpgdir; pgd_t *pgdir; }; /* We have two pages shared with guests, per cpu. */ -struct lguest_pages -{ +struct lguest_pages { /* This is the stack page mapped rw in guest */ char spare[PAGE_SIZE - sizeof(struct lguest_regs)]; struct lguest_regs regs; @@ -89,8 +87,7 @@ struct lg_eventfd_map { }; /* The private info the thread maintains about the guest. */ -struct lguest -{ +struct lguest { struct lguest_data __user *lguest_data; struct lg_cpu cpus[NR_CPUS]; unsigned int nr_cpus; |