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-Tag: v2.6.19-rc5~115 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=84e945e399ce9710a34035ea81eaf5719aa709af;p=linux-2.6-omap-h63xx.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 eed95dc356e..3e3bb22c3ce 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; };