scripts/checkpatch.pl: Replace kstrto with tst_parse_
PATCH 1/1 scripts/checkpatch.pl: Replace kstrto with tst_parse_
Since there is no kstrto*() family of functions in LTP we do have tst_parse_*() instead.
Signed-off-by Cyril Hrubis <[email protected]>
--- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
@@ -6891,7 +6891,7 @@ sub process { if ($count == 1 && $format =~ /^"\%(?i:ll[udxi]|[udxi]ll|ll|[hl]h?[udxi]|[udxi][hl]h?|[hl]h?|[udxi])"$/) { WARN("SSCANF_TO_KSTRTO", - "Prefer kstrto<type> to single variable sscanf\n" . "$here\n$stat_real\n"); + "Prefer tst_parse_<type> to single variable sscanf\n" . "$here\n$stat_real\n"); } } }
Signature · 5 lines
2.32.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Quoted 5 lines · Cyril Hrubis
Since there is no kstrto*() family of functions in LTP we do have tst_parse_*() instead.
Signed-off-by Cyril Hrubis <[email protected]>
Reviewed-by Li Wang <[email protected]>
Signature · 2 lines
Regards, Li Wang
Signature · 2 lines
-- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi,
Thanks, puashed!
Quoted 13 lines · Li Wang
On Tue, Nov 30, 2021 at 6:42 PM Cyril Hrubis <[email protected]> wrote:
Since there is no kstrto*() family of functions in LTP we do have tst_parse_*() instead.
Signed-off-by Cyril Hrubis <[email protected]>Reviewed-by Li Wang <[email protected]>Signature · 2 lines
Regards, Li Wang
Signature · 5 lines
Thank you, Richard. -- Mailing list info: https://lists.linux.it/listinfo/ltp