diff options
author | Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> | 2006-10-31 01:07:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-31 11:07:00 -0500 |
commit | 84e945e399ce9710a34035ea81eaf5719aa709af (patch) | |
tree | 49a8798655e171b1c10a11633a0ef1b7c5e40af4 | |
parent | e7f6552f237498c805af9f01aba168b731e0a4ce (diff) |
[PATCH] uml ubd driver: use bitfields where possible
Use bitfields for boolean fields in ubd data structure.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/um/drivers/ubd_kern.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index eed95dc356e0..3e3bb22c3ce8 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c | |||
@@ -174,8 +174,8 @@ struct ubd { | |||
174 | __u64 size; | 174 | __u64 size; |
175 | struct openflags boot_openflags; | 175 | struct openflags boot_openflags; |
176 | struct openflags openflags; | 176 | struct openflags openflags; |
177 | int shared; | 177 | unsigned shared:1; |
178 | int no_cow; | 178 | unsigned no_cow:1; |
179 | struct cow cow; | 179 | struct cow cow; |
180 | struct platform_device pdev; | 180 | struct platform_device pdev; |
181 | }; | 181 | }; |