Skip to contentSkip to conversation

+ checkpatch-fix-use-of-uninitialized-value-warnings.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Nov 18, 2013 Checkpatch

lore
Share & tools
lore
#0 lore raw

Subject: + checkpatch-fix-use-of-uninitialized-value-warnings.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 18 Nov 2013 14:47:38 -0800

The patch titled
Subject: checkpatch: fix "Use of uninitialized value" warnings
has been added to the -mm tree. Its filename is
checkpatch-fix-use-of-uninitialized-value-warnings.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/checkpatch-fix-use-of-uninitialized-value-warnings.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/checkpatch-fix-use-of-uninitialized-value-warnings.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Joe Perches <[email protected]>
Subject: checkpatch: fix "Use of uninitialized value" warnings

checkpatch is currently confused about some complex macros and references undefined variables $stat and $cond.

Make sure these are defined before using them.

---

 scripts/checkpatch.pl |    1 +
 1 file changed, 1 insertion(+)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-fix-use-of-uninitialized-value-warnings +1 -0
diff -puN scripts/checkpatch.pl~checkpatch-fix-use-of-uninitialized-value-warnings scripts/checkpatch.pl
@@ -3289,6 +3289,7 @@ sub process {
 			}
 		}
 		if (!defined $suppress_whiletrailers{$linenr} &&
+		    defined($stat) && defined($cond) &&
 		    $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) {
 			my ($s, $c) = ($stat, $cond);
 

_

Patches currently in -mm which might be from [email protected] are

origin.patch checkpatch-fix-use-of-uninitialized-value-warnings.patch kernel-timerc-convert-kmalloc_nodegfp_zero-to-kzalloc_node.patch printk-cache-mark-printk_once-test-variable-__read_mostly.patch printk-cache-mark-printk_once-test-variable-__read_mostly-fix.patch get_maintainerpl-incomplete-output.patch linux-next.patch