From: Paolo 'Blaisorblade' Giarrusso Date: Tue, 31 Oct 2006 06:07:10 +0000 (-0800) Subject: [PATCH] uml ubd driver: use bitfields where possible X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=84e945e399ce9710a34035ea81eaf5719aa709af;p=openwrt%2Fstaging%2Fblogic.git [PATCH] uml ubd driver: use bitfields where possible Use bitfields for boolean fields in ubd data structure. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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 { __u64 size; struct openflags boot_openflags; struct openflags openflags; - int shared; - int no_cow; + unsigned shared:1; + unsigned no_cow:1; struct cow cow; struct platform_device pdev; };