Sparse checks does not include other headers in include
Hi Richie,
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)?
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Quoted 6 lines
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 ininclude/tst_device.h. Couldsparse-ltp.ctake into
consideration all files ininclude/(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.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Cyril,
Quoted 2 lines
This is actually a geniune error, the
tst_device.cdoes not includetst_device.h. I will send a patchset to fix the issues.
Ah, I should pay attention to the warnings :). I guess you can merge the fix directly (simple enough).
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp