Remove the following type of warning: WARNING: Prefer using '"%s...", __func__' to using 'create_sigv3_mldsa', \ this function's name, in a string
Signed-off-by: Stefan Berger <[email protected]> --- scripts/checkpatch.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 3d22bf8..f9553be 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -6285,13 +6285,13 @@ sub process { # This does not work very well for -f --file checking as it depends on patch # context providing the function name or a single line form for in-file # function declarations - if ($line =~ /^\+.*$String/ && - defined($context_function) && - get_quoted_string($line, $rawline) =~ /\b$context_function\b/ && - length(get_quoted_string($line, $rawline)) != (length($context_function) + 2)) { - WARN("EMBEDDED_FUNCTION_NAME", - "Prefer using '\"%s...\", __func__' to using '$context_function', this function's name, in a string\n" . $herecurr); - } +# if ($line =~ /^\+.*$String/ && +# defined($context_function) && +# get_quoted_string($line, $rawline) =~ /\b$context_function\b/ && +# length(get_quoted_string($line, $rawline)) != (length($context_function) + 2)) { +# WARN("EMBEDDED_FUNCTION_NAME", +# "Prefer using '\"%s...\", __func__' to using '$context_function', this function's name, in a string\n" . $herecurr); +# } # check for unnecessary function tracing like uses # This does not use $logFunctions because there are many instances like -- 2.53.0
