[LTP] [PATCH v3 3/3] max_map_count: replace ifdefs by tst_arch

Li Wang liwang@redhat.com
Tue Nov 9 12:41:53 CET 2021


> > >                 I wonder if this would be better as:
> > >
> > >                 if (tst_kernel_bits() == 64)
> > >                         return false;
> > >
> >
> > Actually, we have TST_AARCH64 already, I'd go with switch to that.
>
> That wouldn't work right? Since we are checking here if 32bit ARM binary
> runs on 64bit AARCH64 kernel. The tst_arch defines for which
> architecture the binary was build while the tst_kernel_bits() checks if
> the kernel is 32bit or 64bit.
>

Right, I didn't realize that situation. Thanks for the reminder~


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


More information about the ltp mailing list