[LTP] [PATCH v4] lib: LTP_SINGLE_FS_TYPE and LTP_FORCE_SINGLE_FS_TYPE

Cyril Hrubis chrubis@suse.cz
Tue May 27 13:43:43 CEST 2025


Hi!
> FYI also testcases/lib/tst_supported_fs.c uses it:
> 
> tst_supported_fs.c: In function ‘main’:
> tst_supported_fs.c:152:23: error: implicit declaration of function ‘tst_get_supported_fs_types’ [-Wimplicit-function-declaration]
>   152 |         filesystems = tst_get_supported_fs_types((const char * const*)skiplist);
>       |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
> tst_supported_fs.c:152:21: error: assignment to ‘const char * const*’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
>   152 |         filesystems = tst_get_supported_fs_types((const char * const*)skiplist);
>       |                     ^
> make: *** [../../include/mk/rules.mk:48: tst_supported_fs] Error 1
> 
> Therefore we need either relative path (below) or tweak CFLAGS to add -I.

If it's used from shell helper as well we have a tst_private.h header in
include/ for that already, so I guess we should use that one instead.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list