[LTP] [PATCH] scripts/checkpatch.pl: Replace kstrto with tst_parse_

Cyril Hrubis chrubis@suse.cz
Tue Nov 30 11:43:30 CET 2021


Since there is no kstrto*() family of functions in LTP we do have
tst_parse_*() instead.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 87572b2f4..8c74d07b4 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -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");
 				}
 			}
 		}
-- 
2.32.0



More information about the ltp mailing list