Commit 542f90381422 ("dm: support non power of two target max_io_len") renames struct dm_target:split_io variable to max_io_len.
Signed-off-by: Tushar Behera tushar.behera@linaro.org --- ubuntu/dm-raid4-5/dm-raid4-5.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ubuntu/dm-raid4-5/dm-raid4-5.c b/ubuntu/dm-raid4-5/dm-raid4-5.c index e05b0e1..e69ab44 100644 --- a/ubuntu/dm-raid4-5/dm-raid4-5.c +++ b/ubuntu/dm-raid4-5/dm-raid4-5.c @@ -4073,7 +4073,7 @@ static int raid_ctr(struct dm_target *ti, unsigned argc, char **argv) * Make sure that dm core only hands maximum io size * length down and pays attention to io boundaries. */ - ti->split_io = rs->set.io_size; + ti->max_io_len = rs->set.io_size; ti->private = rs;
/* Initialize work queue to handle this RAID set's io. */
Fixes following compilation warning. ubuntu/dm-raid4-5/dm-raid4-5.c:4505:2: warning: initialization from incompatible pointer type [enabled by default] ubuntu/dm-raid4-5/dm-raid4-5.c:4505:2: warning: (near initialization for ‘raid_target.status’) [enabled by default]
Signed-off-by: Tushar Behera tushar.behera@linaro.org --- ubuntu/dm-raid4-5/dm-raid4-5.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ubuntu/dm-raid4-5/dm-raid4-5.c b/ubuntu/dm-raid4-5/dm-raid4-5.c index e69ab44..9f55f58 100644 --- a/ubuntu/dm-raid4-5/dm-raid4-5.c +++ b/ubuntu/dm-raid4-5/dm-raid4-5.c @@ -4246,7 +4246,7 @@ static void raid_devel_stats(struct dm_target *ti, char *result, }
static int raid_status(struct dm_target *ti, status_type_t type, - char *result, unsigned maxlen) + unsigned status_flags, char *result, unsigned maxlen) { unsigned p, sz = 0; char buf[BDEVNAME_SIZE];