};
 
 static int init_first_rw_device(struct btrfs_trans_handle *trans,
-                               struct btrfs_fs_info *fs_info,
-                               struct btrfs_device *device);
+                               struct btrfs_fs_info *fs_info);
 static int btrfs_relocate_sys_chunks(struct btrfs_fs_info *fs_info);
 static void __btrfs_reset_dev_stats(struct btrfs_device *dev);
 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev);
 
        if (seeding_dev) {
                mutex_lock(&fs_info->chunk_mutex);
-               ret = init_first_rw_device(trans, fs_info, device);
+               ret = init_first_rw_device(trans, fs_info);
                mutex_unlock(&fs_info->chunk_mutex);
                if (ret) {
                        btrfs_abort_transaction(trans, ret);
 }
 
 static noinline int init_first_rw_device(struct btrfs_trans_handle *trans,
-                                        struct btrfs_fs_info *fs_info,
-                                        struct btrfs_device *device)
+                                        struct btrfs_fs_info *fs_info)
 {
        struct btrfs_root *extent_root = fs_info->extent_root;
        u64 chunk_offset;