Btrfs: get rid of sparse warnings
make C=2 fs/btrfs/ CF=-D__CHECK_ENDIAN__
I tried to filter out the warnings for which patches have already
been sent to the mailing list, pending for inclusion in btrfs-next.
All these changes should be obviously safe.
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index df6e6c2..94362ad 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2954,11 +2954,11 @@
struct bio **bio, int mirror_num,
unsigned long *bio_flags, int rw)
{
- u64 start;
+ u64 start = 0;
u64 end = 0;
u64 page_start;
int index;
- int first_index;
+ int first_index = 0;
for (index = 0; index < nr_pages; index++) {
page_start = page_offset(pages[index]);