Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 17 Jun 2012 00:01:41 +0000 (17:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 17 Jun 2012 00:01:41 +0000 (17:01 -0700)
Pull btrfs compile warning fixes from Chris Mason.

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs:
  Btrfs: cast devid to unsigned long long for printk %llu
  Btrfs: init old_generation in get_old_root

fs/btrfs/ctree.c
fs/btrfs/ioctl.c

index 04b06bcf2ca9d0643af52a70117c23bee527a549..15cbc2bf4ff0ed11f8bb2e163bc1960c65b27fa7 100644 (file)
@@ -1175,7 +1175,7 @@ get_old_root(struct btrfs_root *root, u64 time_seq)
        struct tree_mod_elem *tm;
        struct extent_buffer *eb;
        struct tree_mod_root *old_root = NULL;
-       u64 old_generation;
+       u64 old_generation = 0;
        u64 logical;
 
        eb = btrfs_read_lock_root_node(root);
index 58adbd0356d6ef93c301ff2780bb79564d150fa8..0e92e5763005214b5d55d091d6fcfb94d73f4875 100644 (file)
@@ -1308,7 +1308,8 @@ static noinline int btrfs_ioctl_resize(struct btrfs_root *root,
        }
        if (device->fs_devices && device->fs_devices->seeding) {
                printk(KERN_INFO "btrfs: resizer unable to apply on "
-                      "seeding device %llu\n", devid);
+                      "seeding device %llu\n",
+                      (unsigned long long)devid);
                ret = -EINVAL;
                goto out_free;
        }