From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] scripts/checkpatch.pl: Replace kstrto with tst_parse_
Date: Tue, 30 Nov 2021 11:43:30 +0100 [thread overview]
Message-ID: <20211130104330.32679-1-chrubis@suse.cz> (raw)
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
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2021-11-30 10:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-30 10:43 Cyril Hrubis [this message]
2021-12-01 7:10 ` [LTP] [PATCH] scripts/checkpatch.pl: Replace kstrto with tst_parse_ Li Wang
2021-12-06 9:41 ` Richard Palethorpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211130104330.32679-1-chrubis@suse.cz \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox