[LTP] [PATCH] lib/tst_kconfig: Include stddef.h
Petr Vorel
pvorel@suse.cz
Tue Jan 14 03:55:07 CET 2025
Hi Ricardo,
> Currently, if a test wants to make use of tst_kconfig.h it must also
> include stddef.h due to the usage of size_t. While at it, fix a few minor
<stddef.h> or <stdlib.h>
Good catch, it should be corrected.
<stdlib.h> is used in lib/tst_test.c, thus tests have it for free,
but there are libraries, which load it as well.
> typos in comments.
FYI we usually split changes into commits (easier in case of revert),
but this is, of course, OK to keep.
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Also, I wondered if we want to remove these includes in files they use
tst_kconfig.h, but probably not necessary.
Kind regards,
Petr
More information about the ltp
mailing list