[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1290254587-12185-1-git-send-email-mk@lab.zgora.pl>
Date: Sat, 20 Nov 2010 13:03:07 +0100
From: Mariusz Kozlowski <mk@....zgora.pl>
To: Chris Mason <chris.mason@...cle.com>
Cc: linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org,
Mariusz Kozlowski <mk@....zgora.pl>
Subject: [PATCH] btrfs: make 1-bit signed fileds unsigned
Fixes these sparse warnings:
fs/btrfs/ctree.h:811:17: error: dubious one-bit signed bitfield
fs/btrfs/ctree.h:812:20: error: dubious one-bit signed bitfield
fs/btrfs/ctree.h:813:19: error: dubious one-bit signed bitfield
Signed-off-by: Mariusz Kozlowski <mk@....zgora.pl>
---
fs/btrfs/ctree.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 8db9234..af52f6d 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -808,9 +808,9 @@ struct btrfs_block_group_cache {
int extents_thresh;
int free_extents;
int total_bitmaps;
- int ro:1;
- int dirty:1;
- int iref:1;
+ unsigned int ro:1;
+ unsigned int dirty:1;
+ unsigned int iref:1;
int disk_cache_state;
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists