[LTP] [PATCH v2 1/2] Add SAFE_MPROTECT() macro

Cyril Hrubis chrubis@suse.cz
Mon Mar 4 15:47:25 CET 2024


Hi!
> > Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
> > ---
> >  include/tst_safe_macros.h |  5 +++++
> >  lib/safe_macros.c         | 18 ++++++++++++++++++
> >  2 files changed, 23 insertions(+)
> 
> Although Cyril acked this I wonder why we are adding it into the old API.
> Shouldn't it be added only into tst_safe_macros.c?

To be honest I do not care that much as long as we do not expose the
functions into the headers for old API. We will have to convert the
safe_macros.c with coccinelle once all tests are converted and one more
function in there does not really matter that much.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list