Skip to content

Commit

Permalink
[PATCH] uml ubd driver: use bitfields where possible
Browse files Browse the repository at this point in the history
Use bitfields for boolean fields in ubd data structure.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[email protected]>
Cc: Jeff Dike <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Oct 31, 2006
1 parent e7f6552 commit 84e945e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/um/drivers/ubd_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 84e945e

Please sign in to comment.