[LTP] [PATCH 04/29] Hugetlb: Migrating libhugetlbfs counters

Li Wang liwang@redhat.com
Tue Oct 18 05:38:10 CEST 2022


Tarun Sahu <tsahu@linux.ibm.com> wrote:



> +
> +static void per_iteration_cleanup(void)
> +{
> +       for (int nr = 0; nr < NR_SLOTS; nr++) {
>

Here the for-loop usage is introduced from C99, we have to avoid
definition in the loop to dismiss compiling broken on old compilers.

See:
https://github.com/wangli5665/ltp/actions/runs/3261830153/jobs/5357590260


+
> +static void setup(void)
> +{
> +       if (!Hopt)
> +               Hopt = tst_get_tmpdir();
> +       SAFE_MOUNT("none", Hopt, "hugetlbfs", 0, NULL);
> +       for (int nr = 0; nr < NR_SLOTS; nr++) {
>


Here as well ^


-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20221018/7f6d10d9/attachment.htm>


More information about the ltp mailing list