checkpatch.pl "Use of uninitialized value" warnings
From: Gerhard Sittig
Date: Mon Nov 18 2013 - 06:45:42 EST
Please tell me when the Cc: list is inappropriate, it appears
that get_maintainer.pl does not know of a maintainer for the
checkpatch.pl script, but lists you as the most active
committers.
Execution of the checkpatch.pl script (v3.12 kernel tree) emitted
the following messages when fed with the attached patch.
Use of uninitialized value $c in pattern match (m//) at ./scripts/checkpatch.pl line 3280.
Use of uninitialized value in substr at ./scripts/checkpatch.pl line 3287.
Use of uninitialized value $s in substr at ./scripts/checkpatch.pl line 3287.
total: 0 errors, 0 warnings, 0 checks, 185 lines checked
The patch is not inlined, to keep its formatting in verbatim
form, and was sent to the linuxppc-dev@xxxxxxxxxxxxxxxx and
linux-arm-kernel@xxxxxxxxxxxxxxxxxxx mailing lists with
Message-ID <1384729577-7336-6-git-send-email-gsi@xxxxxxx> on
Mon, 18 Nov 2013 00:06:05 +0100 if that's easier to lookup or in
case the attachment won't pass email filters).
The offending part of the code appears to be the NODE_CHK() macro
spanning lines 68 to 82 of the patch, while the FOR_NODES() and
PREP_NODE() macros don't have issues.
What can I do to help diagnose and fix the warnings?
virtually yours
Gerhard Sittig
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@xxxxxxx