[LTP] Sparse checks does not include other headers in include
Cyril Hrubis
chrubis@suse.cz
Tue Mar 28 15:13:00 CEST 2023
Hi!
> cd lib && make check-tst_device
>
> ...
> tst_device.c:78:5: warning: Symbol 'tst_find_free_loopdev' has no prototype or library ('tst_') prefix. Should it be static?
> tst_find_free_loopdev() is in include/tst_device.h. Could sparse-ltp.c take into
> consideration all files in include/ (if is trivial to do that)?
This is actually a geniune error, the tst_device.c does not include
tst_device.h. I will send a patchset to fix the issues.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list