Re: [LTP] [PATCH v2 1/5] lib: Rename function check_kver() => check_min_kver()
Avinesh Kumar via ltp <[email protected]> Thu, 30 Jul 2026 10:58:34 +0200
| Newsgroups | it.linux.lists.ltp |
|---|---|
| Message-ID | <[email protected]> |
Hi Petr, Reviewed-by: Avinesh Kumar <[email protected]> Thanks, Avinesh On 7/29/26 11:57 AM, Petr Vorel wrote: > Preparation for a next commit. > > Signed-off-by: Petr Vorel <[email protected]> > --- > The same as v1. > > lib/tst_test.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/lib/tst_test.c b/lib/tst_test.c > index 5c3607016e..778a1fed40 100644 > --- a/lib/tst_test.c > +++ b/lib/tst_test.c > @@ -1058,11 +1058,11 @@ static void do_exit(int ret) > } > > /* > - * Check for the required kernel version. > + * Check for the minimal required kernel version. > * > * return: true if the kernel version is high enough, false otherwise. > */ > -static bool check_kver(const char *min_kver, const int brk_nosupp) > +static bool check_min_kver(const char *min_kver, const int brk_nosupp) > { > char *msg; > int v1, v2, v3; > @@ -1461,7 +1461,7 @@ static void do_setup(int argc, char *argv[]) > tst_brk(TCONF, "Test needs to be run as root"); > > if (tst_test->min_kver) > - check_kver(tst_test->min_kver, 1); > + check_min_kver(tst_test->min_kver, 1); > > if (tst_test->skip_in_lockdown && tst_lockdown_enabled() > 0) > tst_brk(TCONF, "Kernel is locked down, skipping test"); > @@ -1584,7 +1584,7 @@ static void do_setup(int argc, char *argv[]) > tst_check_cmd(tst_test->filesystems->mkfs_ver, 1); > > if (tst_test->filesystems && tst_test->filesystems->min_kver) > - check_kver(tst_test->filesystems->min_kver, 1); > + check_min_kver(tst_test->filesystems->min_kver, 1); > > prepare_device(tst_test->filesystems); > } > @@ -1988,7 +1988,7 @@ static void run_tcase_on_fs(struct tst_fs *fs, const char *fs_type) > if (fs->mkfs_ver && !tst_check_cmd(fs->mkfs_ver, 0)) > return; > > - if (fs->min_kver && !check_kver(fs->min_kver, 0)) > + if (fs->min_kver && !check_min_kver(fs->min_kver, 0)) > return; > > prepare_device(fs); -- Mailing list info: https://lists.linux.it/listinfo/ltp