Commit 70585f05 authored by Mickaël Salaün's avatar Mickaël Salaün Committed by Shuah Khan

kunit: Fix KUNIT_SUCCESS() calls in iov_iter tests

Fix KUNIT_SUCCESS() calls to pass a test argument.

This is a no-op for now because this macro does nothing, but it will be
required for the next commit.

Cc: Brendan Higgins <brendanhiggins@google.com>
Cc: Rae Moar <rmoar@google.com>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Reviewed-by: default avatarDavid Gow <davidgow@google.com>
Signed-off-by: default avatarMickaël Salaün <mic@digikod.net>
Link: https://lore.kernel.org/r/20240408074625.65017-6-mic@digikod.netSigned-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 3a35c130
...@@ -139,7 +139,7 @@ static void __init iov_kunit_copy_to_kvec(struct kunit *test) ...@@ -139,7 +139,7 @@ static void __init iov_kunit_copy_to_kvec(struct kunit *test)
return; return;
} }
KUNIT_SUCCEED(); KUNIT_SUCCEED(test);
} }
/* /*
...@@ -194,7 +194,7 @@ static void __init iov_kunit_copy_from_kvec(struct kunit *test) ...@@ -194,7 +194,7 @@ static void __init iov_kunit_copy_from_kvec(struct kunit *test)
return; return;
} }
KUNIT_SUCCEED(); KUNIT_SUCCEED(test);
} }
struct bvec_test_range { struct bvec_test_range {
...@@ -302,7 +302,7 @@ static void __init iov_kunit_copy_to_bvec(struct kunit *test) ...@@ -302,7 +302,7 @@ static void __init iov_kunit_copy_to_bvec(struct kunit *test)
return; return;
} }
KUNIT_SUCCEED(); KUNIT_SUCCEED(test);
} }
/* /*
...@@ -359,7 +359,7 @@ static void __init iov_kunit_copy_from_bvec(struct kunit *test) ...@@ -359,7 +359,7 @@ static void __init iov_kunit_copy_from_bvec(struct kunit *test)
return; return;
} }
KUNIT_SUCCEED(); KUNIT_SUCCEED(test);
} }
static void iov_kunit_destroy_xarray(void *data) static void iov_kunit_destroy_xarray(void *data)
...@@ -453,7 +453,7 @@ static void __init iov_kunit_copy_to_xarray(struct kunit *test) ...@@ -453,7 +453,7 @@ static void __init iov_kunit_copy_to_xarray(struct kunit *test)
return; return;
} }
KUNIT_SUCCEED(); KUNIT_SUCCEED(test);
} }
/* /*
...@@ -516,7 +516,7 @@ static void __init iov_kunit_copy_from_xarray(struct kunit *test) ...@@ -516,7 +516,7 @@ static void __init iov_kunit_copy_from_xarray(struct kunit *test)
return; return;
} }
KUNIT_SUCCEED(); KUNIT_SUCCEED(test);
} }
/* /*
...@@ -596,7 +596,7 @@ static void __init iov_kunit_extract_pages_kvec(struct kunit *test) ...@@ -596,7 +596,7 @@ static void __init iov_kunit_extract_pages_kvec(struct kunit *test)
stop: stop:
KUNIT_EXPECT_EQ(test, size, 0); KUNIT_EXPECT_EQ(test, size, 0);
KUNIT_EXPECT_EQ(test, iter.count, 0); KUNIT_EXPECT_EQ(test, iter.count, 0);
KUNIT_SUCCEED(); KUNIT_SUCCEED(test);
} }
/* /*
...@@ -674,7 +674,7 @@ static void __init iov_kunit_extract_pages_bvec(struct kunit *test) ...@@ -674,7 +674,7 @@ static void __init iov_kunit_extract_pages_bvec(struct kunit *test)
stop: stop:
KUNIT_EXPECT_EQ(test, size, 0); KUNIT_EXPECT_EQ(test, size, 0);
KUNIT_EXPECT_EQ(test, iter.count, 0); KUNIT_EXPECT_EQ(test, iter.count, 0);
KUNIT_SUCCEED(); KUNIT_SUCCEED(test);
} }
/* /*
...@@ -753,7 +753,7 @@ static void __init iov_kunit_extract_pages_xarray(struct kunit *test) ...@@ -753,7 +753,7 @@ static void __init iov_kunit_extract_pages_xarray(struct kunit *test)
} }
stop: stop:
KUNIT_SUCCEED(); KUNIT_SUCCEED(test);
} }
static struct kunit_case __refdata iov_kunit_cases[] = { static struct kunit_case __refdata iov_kunit_cases[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment