Skip to content

Commit d865983

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs
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
2 parents c458175 + a8c4a33 commit d865983

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

fs/btrfs/ctree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ get_old_root(struct btrfs_root *root, u64 time_seq)
11751175
struct tree_mod_elem *tm;
11761176
struct extent_buffer *eb;
11771177
struct tree_mod_root *old_root = NULL;
1178-
u64 old_generation;
1178+
u64 old_generation = 0;
11791179
u64 logical;
11801180

11811181
eb = btrfs_read_lock_root_node(root);

fs/btrfs/ioctl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,8 @@ static noinline int btrfs_ioctl_resize(struct btrfs_root *root,
13081308
}
13091309
if (device->fs_devices && device->fs_devices->seeding) {
13101310
printk(KERN_INFO "btrfs: resizer unable to apply on "
1311-
"seeding device %llu\n", devid);
1311+
"seeding device %llu\n",
1312+
(unsigned long long)devid);
13121313
ret = -EINVAL;
13131314
goto out_free;
13141315
}

0 commit comments

Comments
 (0)